Skip to main content
版本:v1.6

Gcp-Network

描述​

Terraform configuration for GCP network

参数说明​

属性​

名称描述类型是否必须默认值
auto_create_subnetworksWhen set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the 10.128.0.0/9 address range. When set to false, the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources.boolfalse
delete_default_internet_gateway_routesIf set, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deletedboolfalse
descriptionAn optional description of this resource. The resource must be recreated to modify this field.stringfalse
firewall_rulesList of firewall rulesanyfalse
mtuThe network MTU. Must be a value between 1460 and 1500 inclusive. If set to 0 (meaning MTU is unset), the network will default to 1460 automatically.numberfalse
network_nameThe name of the network being createdtrue
project_idThe ID of the project where this VPC will be createdtrue
routesList of routes being created in this VPClist(map(string))false
routing_modeThe network routing mode (default 'GLOBAL')stringfalse
secondary_rangesSecondary ranges that will be used in some of the subnetsmap(list(object({ range_name = string, ip_cidr_range = string })))false
shared_vpc_hostMakes this project a Shared VPC host if 'true' (default 'false')boolfalse
subnetsThe list of subnets being createdlist(map(string))true
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef​

名称描述类型是否必须默认值
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse