Skip to content

Instantly share code, notes, and snippets.

@nrvale0
Last active September 21, 2016 01:07
Show Gist options
  • Save nrvale0/790ae248e6f571863b04c5f0137ce06d to your computer and use it in GitHub Desktop.
Save nrvale0/790ae248e6f571863b04c5f0137ce06d to your computer and use it in GitHub Desktop.
Get public IP address from AWS metadata service
export PUBLIC_IP=$(wget -q -O - http://169.254.169.254/latest/meta-data/public-ipv4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment