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

Reload credentials from the AWS credential file if they have changed on disk #9034

Open
kdaily opened this issue Aug 13, 2021 · 2 comments
Open
Labels
cross-sdk feature-request A feature should be added or improved. p3 This is a minor priority issue

Comments

@kdaily
Copy link
Member

kdaily commented Aug 13, 2021

Related issues:

We require short term credentials to be used for all API calls. As an easy way to deal with this, we have been writing credentials to a credentials file continually every X minutes and relying on the default search order for finding credentials. That way, we don't have to write any specific authentication code inside the app.

The current solution is for users to write their own credential provider to do this, as demonstrated here (for the Python SDK):

boto/botocore#704 (comment)

@reegnz
Copy link

reegnz commented Aug 19, 2021

Another solution instead of writing your own credential provider is to use credential_process which might be easier to do if the tool you're using is not yours to modify and therefore you cannot simply add a custom credential provider (eg. using terraform, or aws-cli in a shell script).

Would definitely be great to watch the credential file for changes though, then you don't even need an aws config file if you're using the default location of the shared credentials file.

@RyanFitzSimmonsAK
Copy link
Contributor

Transferring issue to the aws-cli repo for tracking going forward.

@RyanFitzSimmonsAK RyanFitzSimmonsAK transferred this issue from aws/aws-sdk Oct 30, 2024
@RyanFitzSimmonsAK RyanFitzSimmonsAK removed their assignment Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cross-sdk feature-request A feature should be added or improved. p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

3 participants