Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retries if loading credentials fails with a SdkClientException #60

Merged
merged 10 commits into from
Mar 3, 2022

Conversation

sayantacC
Copy link
Contributor

@sayantacC sayantacC commented Mar 3, 2022

Issue #59

Description of changes:
If the library fails to load credentials with a SdkClientException, we retry. The retry policy is an exponential back off policy with full jitter. By default the base retry interval is 500 ms, the max retry interval is 2000 ms and the max number of retries is 3. The max retry interval can be set via the option awsMaxBackOffTimeMs and the max number of retries can be set via awsMaxRetries.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sayantacC sayantacC merged commit b3c0cc1 into main Mar 3, 2022
@sayantacC sayantacC deleted the creds_loading_failure branch March 3, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant