Aller au contenu

Vpc subnets

Requirements

Name Version
terraform >= 1.3.5, < 2
google >= 6.36.1, < 7

Providers

Name Version
google >= 6.36.1, < 7

Modules

No modules.

Resources

Name Type
google_compute_subnetwork.default resource

Inputs

Name Description Type Default Required
default_subnet_advanced_params These params will be used by default unless you specify some of them in the subnet_advanced_params map map(string)
{
"subnet_flow_logs": "false",
"subnet_flow_logs_interval": "INTERVAL_10_MIN",
"subnet_flow_logs_metadata": "EXCLUDE_ALL_METADATA",
"subnet_flow_logs_sampling": 0.5,
"subnet_private_access": "true"
}
no
network_name n/a string n/a yes
project_id n/a string n/a yes
secondary_ranges Optional List of Secondary ranges to deploy in specific subnets
map(list(object({
range_name = string,
ip_cidr_range = string,
})))
{} no
subnets List of subnets
list(object({
subnet_name = string,
subnet_region = string,
subnet_ip = string,
## NOTE ON ADVANCED PARAMS
## -----------------------
## We do not define advanced params in this object. however :
## in the tfvars file, you can add all the advanced params in the subnet maps.
## If you do, they will override defaults declared in default_subnet_advanced_params
}))
n/a yes

Outputs

No outputs.