Created
July 19, 2017 02:58
-
-
Save anuragmathur1/ebfeca9db58ccbbfaf08cd1ba0ad5d73 to your computer and use it in GitHub Desktop.
Use this command to decode the message in cloudwatch logs when you get "Encoded authorization failure 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
aws sts decode-authorization-message --encoded-message "$1" | | |
jq '.["DecodedMessage"]' | | |
sed 's/\\"/"/g' | | |
sed 's/^"//' | | |
sed 's/"$//' | | |
jq | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment