Hello, I am doing an AWS Certified Solutions Architect - Associate (SAA-C03) course in Cloud Guru. Unfortunately they just removed the forum. I was wondering about the following.
In the EC2 instance provisioned by them, when I connect to it using AWS console (EC2 Instance Connect), and execute e.g. curl http://169.254.169.254/latest/meta-data/public-ipv4
, then the ip is printed in the terminal.
When I launch my own instance, with same OS, similar type (the type provisioned by them is no accessible in the list), with public IP, with same subnet and security group, then the same command gives me an empty string.
It is the same for meta data and user data. What could possibly be the reason of this?
yes seems to have been the reason, thanks!