mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
aws: get and set session token if available (#9397)
This commit is contained in:
parent
47d30784c5
commit
77f7457051
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ function asp() {
|
||||||
else
|
else
|
||||||
aws_access_key_id="$(aws configure get aws_access_key_id --profile $1)"
|
aws_access_key_id="$(aws configure get aws_access_key_id --profile $1)"
|
||||||
aws_secret_access_key="$(aws configure get aws_secret_access_key --profile $1)"
|
aws_secret_access_key="$(aws configure get aws_secret_access_key --profile $1)"
|
||||||
aws_session_token=""
|
aws_session_token="$(aws configure get aws_session_token --profile $1)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export AWS_DEFAULT_PROFILE=$1
|
export AWS_DEFAULT_PROFILE=$1
|
||||||
|
|
Loading…
Reference in a new issue