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

Use Account ID from C #312

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Use Account ID from C #312

wants to merge 9 commits into from

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented Jan 13, 2025

Issue #, if available:
#303
Description of changes:

Update the following providers to provide account_id if present.

  1. EnvironmentCredentialsProvider: Checks AWS_ACCOUNT_ID env variable.
  2. SSOCredentialsProvider: Account id is parsed from the sso_account_id config parameter which was also required for the request.
  3. STS: Account_id is parsed from the Arn in the response.
  4. STSWebIdentity: Account_id is parsed from the Arn in the response.
  5. ProcessCredentialsProvider: Account_id is parsed from AccountId field in the response if present.
  6. ECSProvider: Account_id is parsed from AccountId field in the response if present.
  7. ProfileProvider: Parses aws_account_id in the config file.

See: awslabs/aws-c-auth#262

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

@waahm7 waahm7 marked this pull request as ready for review January 27, 2025 19:21
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.

2 participants