Skip to content

Instantly share code, notes, and snippets.

@youyo
Created December 30, 2023 16:08
Show Gist options
  • Save youyo/9b2e0271c79f933e4e66cf3073750c54 to your computer and use it in GitHub Desktop.
Save youyo/9b2e0271c79f933e4e66cf3073750c54 to your computer and use it in GitHub Desktop.
curl -s -H "Authorization: $AWS_CONTAINER_AUTHORIZATION_TOKEN" http://localhost:1338/latest/meta-data/container/security-credentials | jq -r '"export AWS_ACCESS_KEY_ID=\(.AccessKeyId)","export AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey)","export AWS_SESSION_TOKEN=\(.Token)"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment