1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-05-10 06:39:49 +00:00

[aws] Use "aws configure export-credentials" instead of the external command aws-export-credentials

This commit is contained in:
Daniel Carrillo 2025-05-01 18:21:50 +02:00
parent 2869f01add
commit c92df37bf3

View File

@ -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