From c92df37bf3c3bc83dbf291b4ae01b842197ec3d9 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Thu, 1 May 2025 18:21:50 +0200 Subject: [PATCH] [aws] Use "aws configure export-credentials" instead of the external command aws-export-credentials --- modules/aws/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/aws/init.zsh b/modules/aws/init.zsh index 38a63c4..adadbc0 100644 --- a/modules/aws/init.zsh +++ b/modules/aws/init.zsh @@ -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