Skip to content

Instantly share code, notes, and snippets.

@vdel26
Created March 10, 2014 16:57
Show Gist options
  • Save vdel26/9469051 to your computer and use it in GitHub Desktop.
Save vdel26/9469051 to your computer and use it in GitHub Desktop.
AWS metadata from within the instance
# curl -s http://169.254.169.254/latest/meta-data/
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
kernel-id
local-hostname
local-ipv4
mac
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
# example: curl http://169.254.169.254/latest/meta-data/instance-type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment