Corrected load balancing scheme in backend service
Corrected load balancing scheme in backend service
This commit is contained in:
parent
ebc110409c
commit
18fa8b79b3
|
@ -60,7 +60,7 @@ resource "google_compute_backend_service" "default" {
|
||||||
health_checks = length(each.value.health_checks) == 0 ? null : [
|
health_checks = length(each.value.health_checks) == 0 ? null : [
|
||||||
for k in each.value.health_checks : lookup(local.hc_ids, k, k)
|
for k in each.value.health_checks : lookup(local.hc_ids, k, k)
|
||||||
]
|
]
|
||||||
load_balancing_scheme = "EXTERNAL"
|
load_balancing_scheme = var.use_classic_version ? "EXTERNAL" : "EXTERNAL_MANAGED"
|
||||||
port_name = (
|
port_name = (
|
||||||
each.value.port_name == null
|
each.value.port_name == null
|
||||||
? lower(each.value.protocol == null ? var.protocol : each.value.protocol)
|
? lower(each.value.protocol == null ? var.protocol : each.value.protocol)
|
||||||
|
|
Loading…
Reference in New Issue