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 | |
# From a user's MFA code, generate accesskey, secret, session token | |
# | |
# ENV inputs: | |
# AWS_CLI_INPUT = /path/to/token/config.json | |
# AWS_PROFILE = The Aws profile to use for aws commands | |
MFA_CODE=$1 | |
if [ -z $MFA_CODE ]; then |