Created
November 4, 2022 20:00
-
-
Save citadelgrad/b0a7837e8b94a84cad9714133deecc4d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export $(printf "AWS_ACCESS_KEY_ID=%s AWS_SECRET_ACCESS_KEY=%s AWS_SESSION_TOKEN=%s" \ | |
$(aws sts assume-role \ | |
--role-arn arn:aws:iam::123456789012:role/MyAssumedRole \ | |
--role-session-name MySessionName \ | |
--query "Credentials.[AccessKeyId,SecretAccessKey,SessionToken]" \ | |
--output text)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment