From e029e6ee96d57f317e8ca7df36d93d20b91b3b5f Mon Sep 17 00:00:00 2001 From: silvicir <127971996+silvicir@users.noreply.github.com> Date: Wed, 4 Dec 2024 08:38:59 +0100 Subject: [PATCH] fix default_instances and maximum_instances --- src/common/_modules/apim/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/_modules/apim/main.tf b/src/common/_modules/apim/main.tf index af075370e..795a68037 100644 --- a/src/common/_modules/apim/main.tf +++ b/src/common/_modules/apim/main.tf @@ -57,9 +57,9 @@ module "apim_v2" { autoscale = { enabled = true - default_instances = 3 + default_instances = var.migration ? 1 : 3 minimum_instances = var.migration ? 1 : 2 - maximum_instances = var.migration ? 1 : 2 + maximum_instances = var.migration ? 1 : 6 scale_out_capacity_percentage = 50 scale_out_time_window = "PT3M" scale_out_value = "1"