Skip to content

Instantly share code, notes, and snippets.

@omar-yassin
Created September 11, 2015 17:52
Show Gist options
  • Save omar-yassin/46d841a3995c7ee06478 to your computer and use it in GitHub Desktop.
Save omar-yassin/46d841a3995c7ee06478 to your computer and use it in GitHub Desktop.
JQ tips
select key/value
aws --profile xxx --output json ec2 describe-instances --instance-ids i-xxxxxx | jq -r '.Reservations[].Instances[].Tags[] | select(.Key | contains("computername")) | .Value'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment