dcloud ec2 security-groups create

Create a security group with optional initial rules

IAM ec2:CreateSecurityGroupChanges state

Synopsis

dcloud ec2 security-groups create --name name [flags]

Flags

  • --nameRequired

    string

    A display name

    Constraints: 1-64 chars

  • --descriptionOptional

    string

    Free text; omitted: none

    Constraints: max 255 chars

  • --rulesOptional

    array of json

    Initial rules, each { direction, protocol, fromPort, toPort, cidrIpv4, description } as for adding a rule; omitted: none

  • --tagsOptional

    map of string

    Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).

    Constraints: key=value

Example

dcloud ec2 security-groups create --name example

Generated from the API description, the same one the API checks requests against and the CLI is built from.