mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 12:48:01 +00:00
[aws] Add sso support
This commit is contained in:
parent
74d4100434
commit
45adecd9c9
@ -9,6 +9,7 @@
|
||||
zstyle -s ':prezto:module:aws' output '_aws_output' || _aws_output='table'
|
||||
zstyle -s ':prezto:module:aws' show_region '_aws_region' || _aws_region='false'
|
||||
zstyle -s ':prezto:module:aws' profile '_aws_profile' || _aws_profile='default'
|
||||
zstyle -s ':prezto:module:aws' sso '_aws_sso' || _aws_sso='false'
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[aws] )); then
|
||||
@ -163,6 +164,10 @@ function aws_switch_profile {
|
||||
else
|
||||
unset AWS_DEFAULT_REGION
|
||||
fi
|
||||
|
||||
if [[ ${_aws_sso} == "true" ]]; then
|
||||
eval $(aws-export-credentials --env-export)
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user