feat(aws): add support for sso sessions login (#12090)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
B. Hamonangan 2023-12-27 17:09:23 +07:00 committed by GitHub
commit 3e92d251ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -29,7 +29,11 @@ function asp() {
export AWS_PROFILE_REGION=$(aws configure get region)
if [[ "$2" == "login" ]]; then
aws sso login
if [[ -n "$3" ]]; then
aws sso login --sso-session $3
else
aws sso login
fi
elif [[ "$2" == "logout" ]]; then
aws sso logout
fi