Skip to content

Instantly share code, notes, and snippets.

@javabrett
Created August 13, 2023 23:16
Show Gist options
  • Save javabrett/db13d6d4425c8ce5255c2fa981115ae1 to your computer and use it in GitHub Desktop.
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
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