Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save algotrader-dotcom/fe110907efc34f5d3f96cfc7474ff362 to your computer and use it in GitHub Desktop.

Select an option

Save algotrader-dotcom/fe110907efc34f5d3f96cfc7474ff362 to your computer and use it in GitHub Desktop.
How to get metadata ec2 instance
$ curl http://169.254.169.254/latest/dynamic/instance-identity/document
{
"version" : "2010-08-31",
"architecture" : "x86_64",
"instanceType" : "t1.micro",
...
"region" : "us-west-2",
"availabilityZone" : "us-west-2b",
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment