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 | |
| # Prerequisites: | |
| # 1. jq (command-line JSON processor) - https://stedolan.github.io/jq/ | |
| # 2. function args: | |
| # - arn-of-the-mfa-device (first arg) | |
| # - code-from-token (second arg) | |
| aws_mfa_cli () { | |
| unset AWS_ACCESS_KEY_ID |