Skip to content

Instantly share code, notes, and snippets.

@bertrandmartel
Created May 30, 2023 13:15
Show Gist options
  • Save bertrandmartel/2304db06ad37ba4c11a7ac551b5894ac to your computer and use it in GitHub Desktop.
Save bertrandmartel/2304db06ad37ba4c11a7ac551b5894ac to your computer and use it in GitHub Desktop.

Revisions

  1. bertrandmartel created this gist May 30, 2023.
    8 changes: 8 additions & 0 deletions stsdecode.sh
    Original 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 '.'