mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
feat(aws): add support for sso sessions login (#12090)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
parent
94a0481f18
commit
3e92d251ba
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue