Skip to content

Commit

Permalink
fix(compute-mig): add mode property to compute_region_autoscaler (#1667)
Browse files Browse the repository at this point in the history
* fix(compute-mig): add mode property to compute_region_autoscaler

* fix(compute-mig): add mode property to zonal mig
  • Loading branch information
NotArpit authored Sep 11, 2023
1 parent 949e98d commit f225b60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/compute-mig/autoscaler.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? [] : [""]
Expand Down Expand Up @@ -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 ? [] : [""]
Expand Down

0 comments on commit f225b60

Please sign in to comment.