Display AMI role metedata associated to the running EC2 : access key, secret access key, token, last rotation, .. so on.
#!/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
This comment has been minimized.
Or :
curl -s -L https://gist.githubusercontent.com/abdennour/acb4c9dd1a03de7935e2aded3368524b/raw/40b366ba4aa5c81528caab8b018db74f3c6074fa/cat-role.sh | bash
Or