Created
June 3, 2015 14:54
-
-
Save akash1810/38643b18ccd1cfc63c3f to your computer and use it in GitHub Desktop.
AWS EC2 Public DNS from Private IP
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/sh | |
aws ec2 describe-instances --filters "Name=private-ip-address,Values=$1" | jq -c '.Reservations[0].Instances[].PublicDnsName' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment