ec2-add-group
Syntax
ec2-add-group
group
-d description
Description
Creates a new security group. Group names must be unique per account.
Options
Option | Description | Required |
---|---|---|
| Name of the security group. Example: | Yes |
| Description of the group. This is informational only. If the description contains spaces, you must enclose it in single quotes ('). Example: | Yes |
Output
Amazon EC2 returns a table that contains the following information:
Output type identifier ("GROUP")
Group name
Group description
Amazon EC2 displays errors on stderr
.
Example
This example creates the websrv
security group.
PROMPT>
ec2-add-group websrv -d 'Web Servers'
GROUP websrv Web Servers