feat(services/aws-v4): Add direct configuration support to ECSCredentialProvider#598
Merged
Xuanwo merged 2 commits intoapache:mainfrom Aug 26, 2025
Merged
Conversation
…ialProvider Allow ECSCredentialProvider to be configured directly via builder methods instead of relying solely on environment variables. Direct configuration takes precedence over environment variables. New builder methods: - with_relative_uri(): Configure relative URI for ECS environments - with_auth_token_file(): Set path to authorization token file - with_metadata_uri_override(): Override base metadata endpoint This enables programmatic configuration of ECS credentials, making it easier to use in containerized environments where environment variables may not be practical or desired. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Contributor
Author
|
@Xuanwo if you can take a look at this |
Xuanwo
approved these changes
Aug 26, 2025
Member
Xuanwo
left a comment
There was a problem hiding this comment.
Thank you for working on this!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ECSCredentialProvidervia new builder methodsNew Builder Methods
with_relative_uri(): Configure relative URI for ECS environmentswith_auth_token_file(): Set path to authorization token filewith_metadata_uri_override(): Override base metadata endpoint for relative URIsBenefits
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI,AWS_CONTAINER_CREDENTIALS_FULL_URI, orAWS_CONTAINER_AUTHORIZATION_TOKEN_FILEexternallyTest Plan
🤖 Generated with Claude Code