Created
May 30, 2023 13:15
-
-
Save bertrandmartel/2304db06ad37ba4c11a7ac551b5894ac to your computer and use it in GitHub Desktop.
Script used to decode sts encoded message
This file contains 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
#!/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