This is the documentation for vpc and subnet module.
This module creates following resources -
Please read the documentation below to know details about the variables accepted by this module.
No modules.
Name |
Description |
Type |
Default |
Required |
cidrBlock |
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. |
string |
n/a |
yes |
region |
The GCP region for this subnetwork. |
string |
n/a |
yes |
subnet_description |
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time. |
string |
"" |
no |
subnet_name |
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
string |
n/a |
yes |
vpc_description |
An optional description of this resource. The resource must be recreated to modify this field. |
string |
"" |
no |
vpc_name |
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. |
string |
n/a |
yes |
Name |
Description |
subnet_id |
an identifier for the resource with format projects/{{project}}/regions/{{region}}/subnetworks/{{name}} |
subnet_name |
subnet name |
vpc_id |
an identifier for the resource with format projects/{{project}}/global/networks/{{name}} |
vpc_name |
vpc network name |