Skip to content

Instantly share code, notes, and snippets.

@anuragmathur1
Created July 19, 2017 02:58
Show Gist options
  • Save anuragmathur1/ebfeca9db58ccbbfaf08cd1ba0ad5d73 to your computer and use it in GitHub Desktop.
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"
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