dcloud ec2 vpcs create

Create a VPC

IAM ec2:CreateVpcChanges state

Synopsis

dcloud ec2 vpcs create --region-id regionId [flags]

Flags

  • --region-idRequired

    string

    The region to create it in, e.g. de1

    Constraints: min 1 chars

  • --nameOptional

    string

    A display name; omitted: none

    Constraints: max 64 chars

  • --cidr-blockOptional

    string

    Private IPv4 range (RFC 1918), /8 to /24, starting on its boundary

    Default: "10.0.0.0/16"

  • --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 vpcs create --region-id example

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