VpcNetwork
A resource of the GCP provider, version 0.2.0, in its Networking group. Import it with:
import VpcNetwork from "gcp/networking"Example
resource VpcNetwork example {
name = "example-value"
autoCreateSubnetworks = true
routingMode = "REGIONAL"
description = "example-value"
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The name of the network |
autoCreateSubnetworks | boolean | true | No | Whether to automatically create subnetworks in each region |
routingMode | string | "REGIONAL" | No | The network-wide routing mode Allowed: "REGIONAL", "GLOBAL" |
description | string | — | No | An optional description of the network |
Set by GCP after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
networkId | string | Yes | The unique network ID assigned by GCP |
selfLink | string | No | The self-link URL of the network |
creationTimestamp | string | No | The creation timestamp of the network |