This file contains hidden or 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 | |
if [ $# -lt 1 ]; then | |
cat << EOF | |
usage: awslogin <profile> | |
Utility script for logging into AWS CLI named profile with an MFA token. | |
A session token will be requested and the "default" profile will be updated | |
with the valid session data. Make sure you have a named profile configured | |
as described below, including the "mfa" arn: |
OlderNewer