Skip to content

Instantly share code, notes, and snippets.

View JoshCooley's full-sized avatar
🎯
Focusing

Josh Cooley JoshCooley

🎯
Focusing
View GitHub Profile
@hummus
hummus / gist:8592113
Last active February 8, 2024 07:35
aws cli + jq example
wget http://stedolan.github.io/jq/download/linux64/jq
aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \
"Name=instance-state-name,Values=running" \
| jq -r \
".Reservations[] | .Instances[] | .InstanceId" \
aws ec2 describe-volumes --filters \
"Name=status,Values=available" \
| jq -r ".Volumes[] | .VolumeId" \