List security groups and their rules.
Section: VPC, Subnets, and Security Groups
Describe security groups
bash
bash
aws ec2 describe-security-groupsExplanation
Use queries to narrow to specific ports or group IDs.
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 VPC, Subnets, and Security Groups