List only instances in the running state.
Section: AWS, kubectl, and Docker
Filter running EC2 instances
bash
bash
aws ec2 describe-instances | jq '.Reservations[].Instances[] | select(.State.Name == "running") | {id: .InstanceId, type: .InstanceType}'Explanation
Great for lightweight audits without crafting a JMESPath query.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing AWS, kubectl, and Docker