Change The Number Of Request Retries In Boto3
In boto3 or botocore, how do I do the equivalent of setting the number of request retries? e.g. in boto2 from boto import config config.set('Boto', 'num_retries', '20') How do I d
Solution 1:
You should now be able to do this, at least for ec2 and perhaps other clients as well:
from botocore.config import Config
config = Config(
retries = dict(
max_attempts = 10
)
)
ec2 = boto3.client('ec2', config=config)
Post a Comment for "Change The Number Of Request Retries In Boto3"