Created
February 28, 2012 22:18
-
-
Save tovbinm/1935634 to your computer and use it in GitHub Desktop.
Get ec2 instance FQDN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ec2hm=`curl -s http://169.254.169.254/latest/meta-data/public-ipv4`; echo ec2-${ec2hm//./-}.compute-1.amazonaws.com; unset ec2hm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment