Created
February 3, 2020 07:47
-
-
Save ThabetAmer/7cc2ffd74b9a63ec1b09785345d967e6 to your computer and use it in GitHub Desktop.
Returns host IP for AWS EC2
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
#!/bin/bash | |
# Returns host IP for AWS EC2 | |
curl 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