max_attempts - AWS SDKs and Tools


Specifies the maximum number attempts to make on a request.


If this value is not specified, it defaults to a value based on the current value of the retry_mode setting.

  • legacy – Uses the existing max_attempts default specific to your SDK (check the Guide for your specific SDK or your SDK's code base)

  • standard – 3 attempts

  • adaptive – 3 attempts

Ways to set this value

Location Supported Example
config file Yes
max_attempts = 4
credentials file -
Environment variable Yes AWS_MAX_ATTEMPTS
AWS CLI parameter -

Compatibility with AWS SDKS and tools