jq makes AWS “describe-instances” actually useful
Posted on April 26, 2017 (Last modified on July 11, 2024) • 1 min read • 22 wordsJust so I don’t forget 🙂
aws ec2 describe-instances | \
jq '.Reservations[].Instances[] | {IP: .PrivateIpAddress, ID: .InstanceId, Name: .Tags[] | select(.Key=="Name").Value}'