Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 570 Bytes

instance-metadada.md

File metadata and controls

14 lines (11 loc) · 570 Bytes

Instance Metadata

$ curl -w "\n" http://169.254.169.254/latest/meta-data/
$ curl -w "\n" http://169.254.169.254/latest/meta-data/public-ipv4

$ curl -w "\n" http://169.254.169.254/latest/meta-data/security-groups
$ curl -w "\n" http://169.254.169.254/latest/meta-data/ami-id
$ curl -w "\n" http://169.254.169.254/latest/meta-data/hostname
$ curl -w "\n" http://169.254.169.254/latest/meta-data/instance-id
$ curl -w "\n" http://169.254.169.254/latest/meta-data/instance-type
$ curl -w "\n" http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key