aws-cli: Updated the config with tools for saml login

This commit is contained in:
Gregor Bückendorf 2019-05-17 23:07:51 +02:00
parent 373652f6b9
commit 927e0c5407
4 changed files with 32 additions and 7 deletions

View file

@ -0,0 +1,17 @@
# If aws-azure-login is not installed do nothing
if ! command -v aws-azure-login >/dev/null 2>&1
then
return
fi
# In WSL the no-sandbox parameter is mandatory for aws-azure-login to function
# correctly
if truthy $DOTFILES_WSL
then
alias aws-azure-login="aws-azure-login --no-sandbox"
fi
# Make it so I just have to type a command and the (optionally) a profile
function aws-token {
aws-azure-login --no-prompt ${1:+--profile $1}
}