Created
December 30, 2023 16:08
-
-
Save youyo/9b2e0271c79f933e4e66cf3073750c54 to your computer and use it in GitHub Desktop.
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
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