Skip to content

Instantly share code, notes, and snippets.

@joet3ch
Created March 22, 2013 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joet3ch/5224674 to your computer and use it in GitHub Desktop.
Save joet3ch/5224674 to your computer and use it in GitHub Desktop.
Display ec2 instance public dns fqdn.
#/bin/bash
public_name=$(curl -s http://169.254.169.254/latest/meta-data/public-hostname)
echo $public_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment