mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-05-10 07:49:49 +00:00
[aws] Use "aws configure export-credentials" instead of the external command aws-export-credentials
This commit is contained in:
parent
2869f01add
commit
c92df37bf3
@ -190,11 +190,11 @@ function aws_switch_profile {
|
||||
fi
|
||||
|
||||
if [[ ${_aws_sso} == "true" ]]; then
|
||||
credentials=$(aws-export-credentials --env-export 2>&1)
|
||||
credentials=$(aws configure export-credentials --format env 2>&1)
|
||||
|
||||
if [[ $credentials =~ "has expired" ]]; then
|
||||
aws sso login
|
||||
credentials=$(aws-export-credentials --env-export)
|
||||
credentials=$(aws configure export-credentials --format env)
|
||||
fi
|
||||
|
||||
eval $credentials
|
||||
|
Loading…
x
Reference in New Issue
Block a user