ec2-describe-group
Description
Returns information about security groups that you own.
Syntax
ec2-describe-group [group ...]
Options
| Name | Description | Required |
|---|---|---|
|
Name of the security group. Type: String Default: Describes all groups within the account. Example: websrv |
No |
Output
The command 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.
Examples
Example Request
This example returns information about two security groups that are configured for the account.
PROMPT>ec2-describe-groupGROUP AIDADH4IGTRXXKCD WebServers Web ServersGROUP AIDADH4IGTRXXKCD RangedPortsBySource Group A