This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## bash or zsh functions to autenticate and assume roles in aws federated accounts | |
# required tools on $PATH - aws, date, curl, jq | |
# | |
# requried environment variables: | |
# AWS_CLI=`which aws` | |
# | |
# optional environment variable, to automatically assume a specific role when calling assume() | |
#AWS_ASSUME_ROLE=arn:aws:iam::369407384105:role/cross-account-federated-role |