aws-cli: Updated the config with tools for saml login
This commit is contained in:
parent
373652f6b9
commit
927e0c5407
4 changed files with 32 additions and 7 deletions
17
.bashrc.d/aws-azure-login.sh
Normal file
17
.bashrc.d/aws-azure-login.sh
Normal 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}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue