Skip to content

Commit 8004b05

Browse files
committed
auto_healing_policies fixed
1 parent 17494bd commit 8004b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/mig/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ resource "google_compute_region_instance_group_manager" "mig" {
5151
target_size = var.autoscaling_enabled ? var.min_replicas : var.target_size
5252

5353
auto_healing_policies {
54-
health_check = length(local.healthchecks) > 0 ? local.healthchecks[0] : null
55-
initial_delay_sec = length(local.healthchecks) > 0 ? var.hc_initial_delay_sec : null
54+
health_check = length(local.healthchecks) > 0 ? local.healthchecks[0] : ""
55+
initial_delay_sec = length(local.healthchecks) > 0 ? var.hc_initial_delay_sec : 0
5656
}
5757
distribution_policy_zones = local.distribution_policy_zones
5858
dynamic "update_policy" {

0 commit comments

Comments
 (0)