Skip to content

Instantly share code, notes, and snippets.

@stevenjack
Last active August 29, 2015 14:01
Show Gist options
  • Save stevenjack/eaff0c80ad95570aa216 to your computer and use it in GitHub Desktop.
Save stevenjack/eaff0c80ad95570aa216 to your computer and use it in GitHub Desktop.
  1. Login to the instance you want the access credentials for
  2. run curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
  3. 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/
  4. The response will include the access key, security key and session token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment