Can't access EC2 meta-data with public ip??

0

Can't access EC2 meta-data with public ip??

if I do curl http://169.254.169.254/latest/meta-data from the server it works but if I replace the IP address with the public IP address and use a brower.. I am getting file not found?

asked a year ago658 views
1 Answer
1

Hi,

The reason is outlined here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html

The instance metadata can only be reached from the ec2 server as mentioned below:

The IP addresses are link-local addresses and are valid only from the instance. For more information, see Link-local address on Wikipedia.

Hope it clarifies

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions