aws-sdk-ruby
aws-sdk-ruby copied to clipboard
Support IMDS V2.1
Context
This PR adds support for IMDS V2.1 - which includes sourcing of account id with credentials. If the underlying EC2 instance's IMDS supports it - the provider can retrieve credentials that include an account ID. Then, this account ID can be used by account-based endpoints.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
-
To make sure we include your contribution in the release notes, please make sure to add description entry for your changes in the "unreleased changes" section of the
CHANGELOG.mdfile (at corresponding gem). For the description entry, please make sure it lives in one line and starts withFeatureorIssuein the correct format. -
For generated code changes, please checkout below instructions first: https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
Thank you for your contribution!
Detected 2 possible performance regressions:
- aws-sdk-dynamodb.client_mem_allocated - z-score regression: 0.62 -> 0.62. Z-score: 16.85
- aws-sdk-cloudwatchlogs.client_mem_allocated - z-score regression: 0.6 -> 0.61. Z-score: 16.71
IMDS 2.1 specifications is not ready set so created a separate PR (#3263) that reaps the refactored benefits from this PR.