-
Notifications
You must be signed in to change notification settings - Fork 266
Description
Describe the feature
Other official AWS SDK libraries support specifying AWS_METADATA_SERVICE_NUM_ATTEMPTS
and AWS_METADATA_SERVICE_TIMEOUT
environment variables to automatically retry IMDS requests.
This feature is currently missing in the aws-sdk-rust
making it more difficult for applications to handle rare credential failures originating from IMDS requests.
Use Case
When applications are deployed in Kubernetes cluster with KIAM project intercepting and redirecting IMDS requests, it can be flaky.
Applications such as Vector will out right abort and throw-away the current operation when it encounters an IMDS credential error. It would be super beneficial to have the retry abilities built-in to the SDK itself.
Proposed Solution
Implement retry logic into the library with AWS_METADATA_SERVICE_NUM_ATTEMPTS
and AWS_METADATA_SERVICE_TIMEOUT
environment variables support.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
A note for the community
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment