-
-
Save nrvale0/790ae248e6f571863b04c5f0137ce06d to your computer and use it in GitHub Desktop.
Get public IP address from AWS metadata service
This file contains 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
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