You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Behavior change: requests are now retried automatically on throttling errors, HTTP 429/500/502/503/504 responses and transport failures, with full-jitter exponential backoff and three attempts in total (the standard retry mode of the official AWS SDKs). Every operation is retried, including non-idempotent ones. Configure or turn this off per client with the retryOptions parameter (RetryOptions.disabled() opts out).
Behavior change: clients built without credentials or credentialsProvider now resolve credentials through the full default chain (environment, web identity, shared config files, container endpoint, instance metadata), cached and refreshed before expiry, instead of only the environment variables and ~/.aws/credentials. Instance metadata and container requests time out after one second so a host without credentials fails fast instead of hanging.
Potentially breaking: every service library now also exports RetryOptions, AwsException and GenericAwsException. package:retry has its own RetryOptions: a file that imports it alongside a service library without a prefix and uses RetryOptions must now add hide RetryOptions to one of the imports, or import one of them with a prefix.
AwsException and GenericAwsException being exported means an error from any service can be caught by a shared type. GenericAwsException also exposes the response's HTTP statusCode.
The default credential provider chain now also resolves ECS/EKS container credentials (fromContainer) and web identity / IRSA (fromWebIdentity, via STS AssumeRoleWithWebIdentity), and the EC2 instance metadata provider now uses IMDSv2.
Added fromSso (IAM Identity Center profiles, including token refresh) and fromProcess (credential_process) providers, both part of the default chain.
Query and REST-XML services: an error response with an empty or non-XML body (such as a proxy's HTML error page) now throws a GenericAwsException carrying the HTTP status instead of an XML parsing error, so a 5xx is retried.