Skip to content

Instantly share code, notes, and snippets.

@bertrandmartel
Created May 30, 2023 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bertrandmartel/2304db06ad37ba4c11a7ac551b5894ac to your computer and use it in GitHub Desktop.
Save bertrandmartel/2304db06ad37ba4c11a7ac551b5894ac to your computer and use it in GitHub Desktop.
Script used to decode sts encoded message
#!/bin/bash
if [ -z $1 ]; then
echo "encoded message required"
exit 1
fi
aws sts decode-authorization-message --encoded-message "$1" | jq -r '.DecodedMessage' | jq '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment