Skip to content

Instantly share code, notes, and snippets.

@danielpodrazka
Created March 11, 2024 13:29
Show Gist options
  • Save danielpodrazka/2350d15d2c3e1664a0fc37eb4067a2e7 to your computer and use it in GitHub Desktop.
Save danielpodrazka/2350d15d2c3e1664a0fc37eb4067a2e7 to your computer and use it in GitHub Desktop.
Generate temporary AWS access tokens
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