ec2-add-group group -d description
Creates a new security group. Group names must be unique per account.
| 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 |
Amazon EC2 returns a table that contains the following information:
-
Output type identifier ("GROUP")
-
Group name
-
Group description
Amazon EC2 displays errors on stderr.
This example creates the websrv security group.
$ec2-add-group websrv -d 'Web servers'GROUP websrv Web servers