ec2-describe-group

ec2-describe-group [group ...]

Describes the current state of each specified security group. If no security groups are explicitly listed, Amazon EC2 displays all security groups owned by the current user.

OptionDescriptionRequired

group

Name of the security group.

Example: webservers

Yes

Amazon EC2 returns a table that contains the following information:

Amazon EC2 displays errors on stderr.

This example displays the state of the websrv security group.

$ ec2-describe-group websrv
GROUP 495219933132 websrv Web servers
PERMISSION 495219933132 websrv ALLOWS tcp 80 80 FROM CIDR 0.0.0.0/0