JAEN

Cloud

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

Can't SSH into EC2
1
Check the SG allows port 22 from your IP
See the whole flow →

Related commands

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