aws-sdk-ruby icon indicating copy to clipboard operation
aws-sdk-ruby copied to clipboard

Support IMDS V2.1

Open jterapin opened this issue 6 months ago • 1 comments

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.

  1. 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.md file (at corresponding gem). For the description entry, please make sure it lives in one line and starts with Feature or Issue in the correct format.

  2. 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!

jterapin avatar Jun 05 '25 16:06 jterapin

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

github-actions[bot] avatar Jun 18 '25 16:06 github-actions[bot]

IMDS 2.1 specifications is not ready set so created a separate PR (#3263) that reaps the refactored benefits from this PR.

jterapin avatar Jun 30 '25 19:06 jterapin