Support aws-cli's AWS_CREDENTIAL_EXPIRATION envar
jaklan opened this issue · comments
- I am using the latest release of AWS Vault
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_CREDENTIALS_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
Also important due to that:
when envars are set,
aws configure export-credentials
just utilise them. SoAWS_CREDENTIAL_EXPIRATION
variable has to be set bygranted
(or any other tool) and thenaws configure export-credentials
would work correctly