From f225b60b0e0b34bc5cc58de68c1539ad01e0ad60 Mon Sep 17 00:00:00 2001 From: Arpit Sharma Date: Mon, 11 Sep 2023 21:25:31 +1000 Subject: [PATCH] fix(compute-mig): add mode property to compute_region_autoscaler (#1667) * fix(compute-mig): add mode property to compute_region_autoscaler * fix(compute-mig): add mode property to zonal mig --- modules/compute-mig/autoscaler.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/compute-mig/autoscaler.tf b/modules/compute-mig/autoscaler.tf index b8bd0acc..c0f77491 100644 --- a/modules/compute-mig/autoscaler.tf +++ b/modules/compute-mig/autoscaler.tf @@ -35,6 +35,7 @@ resource "google_compute_autoscaler" "default" { max_replicas = var.autoscaler_config.max_replicas min_replicas = var.autoscaler_config.min_replicas cooldown_period = var.autoscaler_config.cooldown_period + mode = var.autoscaler_config.mode dynamic "scale_down_control" { for_each = local.as_scaling.down == null ? [] : [""] @@ -138,6 +139,7 @@ resource "google_compute_region_autoscaler" "default" { max_replicas = var.autoscaler_config.max_replicas min_replicas = var.autoscaler_config.min_replicas cooldown_period = var.autoscaler_config.cooldown_period + mode = var.autoscaler_config.mode dynamic "scale_down_control" { for_each = local.as_scaling.down == null ? [] : [""]