Created
October 15, 2025 08:31
-
-
Save adenot/5094a056097f1db66934eef09baa765f to your computer and use it in GitHub Desktop.
Exports credentials from AWS CloudShell
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
| aws configure export-credentials | jq -r '"export AWS_ACCESS_KEY_ID=\"" + .AccessKeyId + "\"\nexport AWS_SECRET_ACCESS_KEY=\"" + .SecretAccessKey + "\"\nexport AWS_SESSION_TOKEN=\"" + .SessionToken + "\"\n# Expires: " + .Expiration' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment