Extract instance IDs from AWS CLI JSON output.
Section: AWS, kubectl, and Docker
Get EC2 instance IDs
bash
bash
aws ec2 describe-instances | jq -r '.Reservations[].Instances[].InstanceId'Explanation
This pattern appears constantly in shell automation.
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