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

[FR] Support aws-cli's AWS_CREDENTIAL_EXPIRATION envar #329

Closed
jaklan opened this issue Jan 1, 2023 · 0 comments · Fixed by #345
Closed

[FR] Support aws-cli's AWS_CREDENTIAL_EXPIRATION envar #329

jaklan opened this issue Jan 1, 2023 · 0 comments · Fixed by #345

Comments

@jaklan
Copy link

jaklan commented Jan 1, 2023

After merging and releasing aws/aws-cli#7398, the official envar supported by aws-cli is AWS_CREDENTIAL_EXPIRATION, so I believe it should replace AWS_SESSION_EXPIRATION.

❯ AWS_PROFILE=some-profile aws configure export-credentials --format env
export AWS_ACCESS_KEY_ID=[redacted]
export AWS_SECRET_ACCESS_KEY=[redacted]
export AWS_SESSION_TOKEN=[redacted]
export AWS_CREDENTIAL_EXPIRATION=2023-01-01T18:18:38+00:00

It's also important due to that:

when envars are set, aws configure export-credentials just utilise them. So AWS_CREDENTIAL_EXPIRATION variable has to be set by granted (or any other tool) and then aws configure export-credentials would work correctly

aws/aws-cli#7388 (comment)

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 a pull request may close this issue.

1 participant