-
-
Save saurabh-hirani/9ac5bc59a098e5f4858f2574cd4c4077 to your computer and use it in GitHub Desktop.
test.sh
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
aws ec2 describe-instances | jq -rc '.Reservations[].Instances[] | | |
[.InstanceId, (.PublicIpAddress | if .==null then "Private" else "Public" end)] | @csv' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment