Skip to content

Instantly share code, notes, and snippets.

@xshyamx
Created March 16, 2014 07:14
Show Gist options
  • Save xshyamx/9579619 to your computer and use it in GitHub Desktop.
Save xshyamx/9579619 to your computer and use it in GitHub Desktop.
Get the public hostname in ec2 from within the instance
curl http://169.254.169.254/latest/meta-data/public-hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment