Fix subnet configuration in cloud nat module (#2171)
* support optional secondary ranges in net-cloudnat module * fix subnet configuration * fix packer blueprint
This commit is contained in:
committed by
GitHub
parent
1ee7494a30
commit
a590deb58b
@@ -82,19 +82,19 @@ module "firewall" {
|
||||
}
|
||||
|
||||
module "nat" {
|
||||
source = "../../../modules/net-cloudnat"
|
||||
project_id = module.project.project_id
|
||||
region = var.region
|
||||
name = "default"
|
||||
router_network = module.vpc.name
|
||||
config_source_subnets = "LIST_OF_SUBNETWORKS"
|
||||
subnetworks = [
|
||||
{
|
||||
self_link = module.vpc.subnet_self_links["${var.region}/${local.compute_subnet_name}"]
|
||||
config_source_ranges = ["ALL_IP_RANGES"]
|
||||
secondary_ranges = null
|
||||
}
|
||||
]
|
||||
source = "../../../modules/net-cloudnat"
|
||||
project_id = module.project.project_id
|
||||
region = var.region
|
||||
name = "default"
|
||||
router_network = module.vpc.name
|
||||
config_source_subnetworks = {
|
||||
all = false
|
||||
subnetworks = [
|
||||
{
|
||||
self_link = module.vpc.subnet_self_links["${var.region}/${local.compute_subnet_name}"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
resource "google_service_account_iam_binding" "sa-image-builder-token-creators" {
|
||||
|
||||
Reference in New Issue
Block a user