Created
August 13, 2023 23:16
-
-
Save javabrett/db13d6d4425c8ce5255c2fa981115ae1 to your computer and use it in GitHub Desktop.
AWS granted convert to AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY + AWS_SESSION_TOKEN
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
granted credential-process --profile $AWS_PROFILE | jq -r '"export AWS_ACCESS_KEY_ID=\(.AccessKeyId)\nexport AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey)\nexport AWS_SESSION_TOKEN=\(.SessionToken)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment