Skip to content

Support passing selected profile into DefaultAWSCredentialsProviderChain #3395

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

Open
1 of 2 tasks
nicornk opened this issue Apr 25, 2025 · 0 comments
Open
1 of 2 tasks
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@nicornk
Copy link

nicornk commented Apr 25, 2025

Describe the feature

It would be great if as a user of the library it would be possible to pass the desired profile_name into the DefaultAWSCredentialsProviderChain. Right now, as a user I can only pass the selected profile by using the AWS_PROFILE or AWS_DEFAULT_PROFILE environment variable.

In boto3 it's possible to pass the region_name into the Session and than the default "chain" will use it.

Use Case

duckdb could use the DefaultAWSCredentialsProviderChain together with a selected profile. Right now, there is duplicate code or more user facing configuration needed to make it work automatically.
Sometimes setting environment variables is not possible.

duckdb/duckdb-aws#62

https://github.com/duckdb/duckdb-aws/blob/035c589a846b448d5c9cf3523ebfe439053a4406/src/aws_secret.cpp#L143

Proposed Solution

Have a new constructor in DefaultAWSCredentialsProviderChain that accepts a profile argument and pipe that value into all providers of the default chain.

Other Information

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change
@nicornk nicornk added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant