Skip to content

Instantly share code, notes, and snippets.

@deybhayden
Last active January 17, 2018 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deybhayden/3a051b62e319013486e27ff1d3d232eb to your computer and use it in GitHub Desktop.
Save deybhayden/3a051b62e319013486e27ff1d3d232eb to your computer and use it in GitHub Desktop.
decode_sts.sh
sts-decode() {
aws sts decode-authorization-message --encoded-message "$1" | jq '.DecodedMessage | fromjson'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment