Skip to content

Instantly share code, notes, and snippets.

@saurabh-hirani
Created Jul 9, 2021
Embed
What would you like to do?
test.sh
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