summaryrefslogtreecommitdiffstats
path: root/src/configs
diff options
context:
space:
mode:
authorHarry Hodge <harry@harryhodge.co.uk>2023-03-20 20:56:12 +0000
committerGitHub <noreply@github.com>2023-03-20 21:56:12 +0100
commit74ce7fdbee071c28c77fd148d4ba02515f272d10 (patch)
treeb5ddba71a78fa17a9aa995d464661b957a4bdb30 /src/configs
parent58d401acef1c3c39d720cdf17b73335e4193ee2d (diff)
feat(aws): Adds support for AWS_CREDENTIAL_EXPIRATION environment variable (#5002)
feat(aws): supports AWS_CREDENTIAL_EXPIRATION environment variable Adds support for the AWS_CREDENTIAL_EXPIRATION environment variable which was adopted as the standard way to set the expiration for temporary credentials. The existing AWS_SESSION_EXPIRATION environment variable is not dropped for backwards compatibility. See https://github.com/aws/aws-cli/pull/7398
Diffstat (limited to 'src/configs')
-rw-r--r--src/configs/aws.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/configs/aws.rs b/src/configs/aws.rs
index 45b06f870..92e981d4d 100644
--- a/src/configs/aws.rs
+++ b/src/configs/aws.rs
@@ -18,7 +18,8 @@ use std::collections::HashMap;
///
/// When using [aws-vault](https://github.com/99designs/aws-vault) the profile
/// is read from the `AWS_VAULT` env var and the credentials expiration date
-/// is read from the `AWS_SESSION_EXPIRATION` env var.
+/// is read from the `AWS_SESSION_EXPIRATION` or `AWS_CREDENTIAL_EXPIRATION`
+/// var.
///
/// When using [awsu](https://github.com/kreuzwerker/awsu) the profile
/// is read from the `AWSU_PROFILE` env var.