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 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