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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store