diff --git a/examples/multi_nic_common/main.tf b/examples/multi_nic_common/main.tf index c1534ae2..11635dd6 100644 --- a/examples/multi_nic_common/main.tf +++ b/examples/multi_nic_common/main.tf @@ -207,7 +207,7 @@ module "lb_external" { name = "${var.name_prefix}${each.value.name}" backend_instance_groups = { for v in each.value.backends : v => module.vmseries[v].instance_group_self_link } - rules = each.value.rules + rules = { for k, v in each.value.rules : "${var.name_prefix}${k}" => v } health_check_http_port = each.value.http_health_check_port health_check_http_request_path = try(each.value.http_health_check_request_path, "/php/login.php") diff --git a/examples/vmseries_ha/main.tf b/examples/vmseries_ha/main.tf index c0ea8664..d5e07fda 100644 --- a/examples/vmseries_ha/main.tf +++ b/examples/vmseries_ha/main.tf @@ -212,7 +212,7 @@ module "lb_external" { name = "${var.name_prefix}${each.value.name}" backend_instance_groups = { for v in each.value.backends : v => module.vmseries[v].instance_group_self_link } - rules = each.value.rules + rules = { for k, v in each.value.rules : "${var.name_prefix}${k}" => v } health_check_http_port = each.value.http_health_check_port health_check_http_request_path = try(each.value.http_health_check_request_path, "/php/login.php") diff --git a/examples/vpc_peering_common/main.tf b/examples/vpc_peering_common/main.tf index 185ea064..37923b5d 100644 --- a/examples/vpc_peering_common/main.tf +++ b/examples/vpc_peering_common/main.tf @@ -205,7 +205,7 @@ module "lb_external" { name = "${var.name_prefix}${each.value.name}" backend_instance_groups = { for v in each.value.backends : v => module.vmseries[v].instance_group_self_link } - rules = each.value.rules + rules = { for k, v in each.value.rules : "${var.name_prefix}${k}" => v } health_check_http_port = each.value.http_health_check_port health_check_http_request_path = try(each.value.http_health_check_request_path, "/php/login.php") diff --git a/examples/vpc_peering_common_with_autoscale/main.tf b/examples/vpc_peering_common_with_autoscale/main.tf index 78ecf091..78a48ae8 100644 --- a/examples/vpc_peering_common_with_autoscale/main.tf +++ b/examples/vpc_peering_common_with_autoscale/main.tf @@ -177,7 +177,7 @@ module "lb_external" { "${v}_${z_k}" => module.autoscale[v].zonal_instance_group_ids[z_k] } ]...) - rules = each.value.rules + rules = { for k, v in each.value.rules : "${var.name_prefix}${k}" => v } health_check_http_port = each.value.http_health_check_port health_check_http_request_path = try(each.value.http_health_check_request_path, "/php/login.php") diff --git a/examples/vpc_peering_common_with_network_tags/main.tf b/examples/vpc_peering_common_with_network_tags/main.tf index 31157fc8..b37965d6 100644 --- a/examples/vpc_peering_common_with_network_tags/main.tf +++ b/examples/vpc_peering_common_with_network_tags/main.tf @@ -211,7 +211,7 @@ module "lb_external" { name = "${var.name_prefix}${each.value.name}-${each.value.region}" backend_instance_groups = { for v in each.value.backends : v => module.vmseries[v].instance_group_self_link } - rules = each.value.rules + rules = { for k, v in each.value.rules : "${var.name_prefix}${k}" => v } health_check_http_port = each.value.http_health_check_port health_check_http_request_path = try(each.value.http_health_check_request_path, "/php/login.php") diff --git a/examples/vpc_peering_dedicated_with_autoscale/main.tf b/examples/vpc_peering_dedicated_with_autoscale/main.tf index 78ecf091..78a48ae8 100644 --- a/examples/vpc_peering_dedicated_with_autoscale/main.tf +++ b/examples/vpc_peering_dedicated_with_autoscale/main.tf @@ -177,7 +177,7 @@ module "lb_external" { "${v}_${z_k}" => module.autoscale[v].zonal_instance_group_ids[z_k] } ]...) - rules = each.value.rules + rules = { for k, v in each.value.rules : "${var.name_prefix}${k}" => v } health_check_http_port = each.value.http_health_check_port health_check_http_request_path = try(each.value.http_health_check_request_path, "/php/login.php")