Skip to content

Instantly share code, notes, and snippets.

@pfeilbr
Created June 23, 2021 16:59
Show Gist options
  • Save pfeilbr/47592bfe2653c9c86ead2b92b91050a8 to your computer and use it in GitHub Desktop.
Save pfeilbr/47592bfe2653c9c86ead2b92b91050a8 to your computer and use it in GitHub Desktop.
assumed_role_arn="$(aws sts get-caller-identity --query 'Arn' | sed -e 's/"//g' | sed -e 's/\/[[:alnum:]]*$//')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment