Last active
December 9, 2017 07:03
-
-
Save abdennour/acb4c9dd1a03de7935e2aded3368524b to your computer and use it in GitHub Desktop.
Display AMI role metedata associated to the running EC2 : access key, secret access key, token, last rotation, .. so on.
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
#!/bin/bash | |
ENDPOINT=http://169.254.169.254/latest/meta-data/iam/security-credentials/; | |
curl -s $ENDPOINT`curl -s $ENDPOINT` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or :
curl -s -L https://gist.githubusercontent.com/abdennour/acb4c9dd1a03de7935e2aded3368524b/raw/40b366ba4aa5c81528caab8b018db74f3c6074fa/cat-role.sh | bash
Or