ec2-describe-group
Syntax
ec2-describe-group [
group
...]
Description
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.
Options
Option | Description | Required |
---|---|---|
| Name of the security group. Example: | Yes |
Output
Amazon EC2 returns a table that contains the following information:
Output type identifier ("GROUP", "PERMISSION")
User ID of security group owner
Security group name
Description of the security group
Firewall rule
Amazon EC2 displays errors on stderr
.
Example
This example displays the state of the websrv
security group.
PROMPT>
ec2-describe-group websrv
GROUP 495219933132 websrv Web servers PERMISSION 495219933132 websrv ALLOWS tcp 80 80 FROM CIDR 0.0.0.0/0