To find IP of an EC2 instance ssh to the instance, run curl http://169.254.169.254/latest/meta-data/public-ipv4 To find hostname of an EC2 instance ssh to the instance, run curl http://169.254.169.254/latest/meta-data/public-hostname