- Login to the instance you want the access credentials for
- run
curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
- Get the name of the role returned by this endpoint, and append it to the end:
curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ROLE_NAME/
- The response will include the access key, security key and session token
Last active
August 29, 2015 14:01
-
-
Save stevenjack/eaff0c80ad95570aa216 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment