Skip to content

Instantly share code, notes, and snippets.

@adenot
Created October 15, 2025 08:31
Show Gist options
  • Select an option

  • Save adenot/5094a056097f1db66934eef09baa765f to your computer and use it in GitHub Desktop.

Select an option

Save adenot/5094a056097f1db66934eef09baa765f to your computer and use it in GitHub Desktop.
Exports credentials from AWS CloudShell
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