aws ec2 describe-security-groups
SafeInspect security groups
aws ec2 describe-security-groups --group-ids <sg>
Dumps SG rules — the top suspect for 'can't connect'. Verify port and source first.
Examples
aws ec2 describe-security-groups --group-ids sg-0abc --query 'SecurityGroups[].IpPermissions'Just the ingress rules
Syntax
aws ec2 describe-security-groups [--group-ids sg-xxx]
Before you run it
Read only.
Used when you see
Related commands
- aws ec2 describe-instancesList EC2
- az network nsg rule listInspect NSG rules
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store