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 | |
# A script that makes it easier to use the AWS CLI with MFA enabled. It fetches your temporary AWS STS credentials and | |
# writes text to stdout that exports those credentials as the proper environment variables for use with the AWS CLI. | |
set -e | |
readonly SCRIPT_NAME=$(basename "$0") | |
readonly EMPTY_VAL="__EMPTY__" | |
readonly DEFAULT_MFA_TOKEN_DURATION_SECONDS=43200 # 12 hours | |
readonly DEFAULT_ROLE_DURATION_SECONDS=43200 # 12 hours |
OlderNewer