Created
May 30, 2023 13:15
-
-
Save bertrandmartel/2304db06ad37ba4c11a7ac551b5894ac to your computer and use it in GitHub Desktop.
Revisions
-
bertrandmartel created this gist
May 30, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/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 '.'