Created
October 27, 2019 17:13
-
-
Save chaserx/6ab418638f0daabede8efc8f741a389b to your computer and use it in GitHub Desktop.
Extract relevant info from AWS CLI with jq
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 --profile=chaserx | jq '.Reservations[].Instances[] | { instance: .InstanceId, publicip: .PublicIpAddress, privateip: .PrivateIpAddress, publicDNS: .PublicDnsName, tags: .Tags, state: .State.Name }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment