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

Support aws-cli's AWS_CREDENTIAL_EXPIRATION envar #4783

Closed
jaklan opened this issue Jan 1, 2023 · 2 comments · Fixed by #5002
Closed

Support aws-cli's AWS_CREDENTIAL_EXPIRATION envar #4783

jaklan opened this issue Jan 1, 2023 · 2 comments · Fixed by #5002
Labels
✨ enhancement A new feature implementation.

Comments

@jaklan
Copy link

jaklan commented Jan 1, 2023

Feature Request

After merging and releasing aws/aws-cli#7398, the official envar supported by aws-cli is AWS_CREDENTIAL_EXPIRATION, so it should be supported as well (and replace other expiration envars when supported aws-related tools migrate to the new key):

❯ 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
@jaklan jaklan added the ✨ enhancement A new feature implementation. label Jan 1, 2023
@bongole
Copy link

bongole commented Mar 8, 2023

aws-vault also no longer uses AWS_SESSION_EXPIRATION so the duration is no longer displayed in starship prompt.

99designs/aws-vault#1143

@jreisinger
Copy link

Quick temporary fix:

export AWS_SESSION_EXPIRATION="$AWS_CREDENTIAL_EXPIRATION"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement A new feature implementation.
Projects
None yet
3 participants