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-group
GROUP AIDADH4IGTRXXKCD WebServers Web Servers
GROUP AIDADH4IGTRXXKCD RangedPortsBySource Group A