Where is http://169.254.169.254/ hosted?

2019-08-31 06:04发布

http://169.254.169.254/ url returns ec2 instance metadata. Where is this url hosted and how is it able to get meta-data of an instance? Is it private ip address which can be accessed only when logged into an ec2 instance?

1条回答
We Are One
2楼-- · 2019-08-31 07:10

Calls to http://169.254.169.254 are intercepted by the Amazon EC2 hypervisor and are returned to the instance. Such requests do not flow over the network.

Common uses are:

  • Instance metadata: http://169.254.169.254/latest/meta-data/
  • User data: http://169.254.169.254/latest/user-data/

There is also the lesser-known:

  • Dynamic Data: http://169.254.169.254/latest/dynamic/

For more details, see: Instance Metadata and User Data - Amazon Elastic Compute Cloud

查看更多
登录 后发表回答