Skip to content

Instantly share code, notes, and snippets.

@loopj
Created October 11, 2012 01:14
Show Gist options
  • Select an option

  • Save loopj/3869561 to your computer and use it in GitHub Desktop.

Select an option

Save loopj/3869561 to your computer and use it in GitHub Desktop.
Get the AWS instance ID for the current instance, no API credentials required
# Get the AWS instance ID for the current instance, no API credentials required
curl http://169.254.169.254/2009-04-04/meta-data/instance-id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment