Browse Tag: ec2

EC2 metadata get

Today I learned about the EC2 metadata service. Try it from any EC2 instance!

curl http://169.254.169.254/latest/meta-data/

for the list of metadata objects

curl http://169.254.169.254/latest/meta-data/public-ipv4

for the public IP, for example!