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 | |
# Uses AWS CLI and user-provided MFA code to retrieve and store | |
# temp session credentials from AWS Security Token Service (STS), | |
# - for user sessions via get-session-token | |
# - or role sessions via assume-role | |
# | |
# Stores 'token_expiration' in the profile to enable checks on session time left | |