Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compute-mig): add mode property to compute_region_autoscaler #1667

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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