Created
March 11, 2024 13:29
-
-
Save danielpodrazka/2350d15d2c3e1664a0fc37eb4067a2e7 to your computer and use it in GitHub Desktop.
Generate temporary AWS access tokens
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
aws sts get-session-token --duration-seconds 900 --output text | awk '{print "export AWS_ACCESS_KEY_ID="$2"\nexport AWS_SECRET_ACCESS_KEY="$4"\nexport AWS_SESSION_TOKEN="$5}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment