Resource
dcloud_vpc
A VPC: one private network in a region. Divide its cidr_block with dcloud_subnet (one per availability zone, ranges must not overlap).
Example Usage
resource "dcloud_vpc" "main" {
name = "main"
cidr_block = "10.10.0.0/16"
tags = { env = "prod" }
}Schema
Optional
cidr_block(String) Private IPv4 range (RFC 1918), /8 to /24, starting on its boundary. Default10.0.0.0/16. Changing it replaces the resource.name(String) A display name; omitted: none. Up to 64 characters. Changing it replaces the resource.project(String) The project (its slug) the resource lives in. At create: this, else the provider'sproject, else Default. Changing it moves the resource and its parts; it is never replaced.region_id(String) The region to create it in, e.g. de1 Defaults to the provider'sregion. Changing it replaces the resource.tags(Map of String) Tags, key → value. Once set here, only these keys are managed; tags Deutsche Cloud adds itself are left alone.
Read-Only
id(String) The resource's id.is_default(Boolean) Whether this is the region's default VPC.status(String)pendinguntil the provider network exists, thenavailable.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_vpc.main <vpc-id>Generated from the provider's schema.
Related