Last active
June 7, 2018 12:22
-
-
Save mgla/def57688c8c4926def243cfc2b9f54c4 to your computer and use it in GitHub Desktop.
Get AWS IAM instance role
This file contains 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 characters
# Get and print IAM instance role | |
ROLE=$(curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ -s); echo $ROLE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment