Skip to content

Commit

Permalink
Merge pull request #1172 from GoogleCloudPlatform/juliodiez-patch-1
Browse files Browse the repository at this point in the history
Allow to not use any health check
  • Loading branch information
juliodiez authored Feb 24, 2023
2 parents dd416a4 + 5a44baa commit afb2970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/net-ilb-l7/backend-service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "google_compute_region_backend_service" "default" {
description = var.description
affinity_cookie_ttl_sec = each.value.affinity_cookie_ttl_sec
connection_draining_timeout_sec = each.value.connection_draining_timeout_sec
health_checks = [
health_checks = length(each.value.health_checks) == 0 ? null : [
for k in each.value.health_checks : lookup(local.hc_ids, k, k)
] # not for internet / serverless NEGs
locality_lb_policy = each.value.locality_lb_policy
Expand Down

0 comments on commit afb2970

Please sign in to comment.