jq makes AWS “describe-instances” actually useful

0 minute read

Just so I don’t forget 🙂

aws ec2 describe-instances | \
  jq '.Reservations[].Instances[] | {IP: .PrivateIpAddress, ID: .InstanceId, Name: .Tags[] | select(.Key=="Name").Value}'