dcloud ec2 subnets createCreate a subnet: a range of the VPC in one availability zone
An instance launched with `subnetId` gets an address in the range and runs in the subnet’s zone. Ranges are /16 to /28, inside the VPC and not overlapping another subnet.
Synopsis
dcloud ec2 subnets create id --cidr-block cidrBlock [flags]Arguments
<id>Requiredstring
Also accepted as
--id. Constraints: uuid
Flags
--cidr-blockRequiredstring
IPv4 range inside the VPC, e.g. 10.0.1.0/24
Constraints: 9-18 chars
--availability-zone-idOptionalstring
The zone (e.g. de1b); default de1a
Constraints: /^[a-z]+[0-9]+[a-z]$/
--nameOptionalstring
A display name; omitted: none
Constraints: max 64 chars
--tagsOptionalmap 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 subnets create id --cidr-block exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.