diff --git a/infra/container_apps/env/dev-pnpg/terraform.tfvars b/infra/container_apps/env/dev-pnpg/terraform.tfvars index 7014e83..098c015 100644 --- a/infra/container_apps/env/dev-pnpg/terraform.tfvars +++ b/infra/container_apps/env/dev-pnpg/terraform.tfvars @@ -12,7 +12,20 @@ tags = { container_app = { min_replicas = 0 max_replicas = 1 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 0.5 memory = "1Gi" } diff --git a/infra/container_apps/env/dev/terraform.tfvars b/infra/container_apps/env/dev/terraform.tfvars index bd501f3..f052362 100644 --- a/infra/container_apps/env/dev/terraform.tfvars +++ b/infra/container_apps/env/dev/terraform.tfvars @@ -11,7 +11,20 @@ tags = { container_app = { min_replicas = 0 max_replicas = 1 - scale_rules = [] + scale_rules = [ + { + custom = { + metadata = { + "desiredReplicas" = "1" + "start" = "0 8 * * MON-FRI" + "end" = "0 19 * * MON-FRI" + "timezone" = "Europe/Rome" + } + type = "cron" + } + name = "cron-scale-rule" + } + ] cpu = 0.5 memory = "1Gi" } diff --git a/infra/container_apps/env/prod-pnpg/terraform.tfvars b/infra/container_apps/env/prod-pnpg/terraform.tfvars index 452a803..dcae363 100644 --- a/infra/container_apps/env/prod-pnpg/terraform.tfvars +++ b/infra/container_apps/env/prod-pnpg/terraform.tfvars @@ -30,8 +30,6 @@ container_app = { memory = "2.5Gi" } - - app_settings = [ { name = "APPLICATIONINSIGHTS_ROLE_NAME" diff --git a/infra/container_apps/env/uat-pnpg/terraform.tfvars b/infra/container_apps/env/uat-pnpg/terraform.tfvars index 7fbd77a..9c86978 100644 --- a/infra/container_apps/env/uat-pnpg/terraform.tfvars +++ b/infra/container_apps/env/uat-pnpg/terraform.tfvars @@ -17,8 +17,6 @@ container_app = { memory = "1Gi" } - - app_settings = [ { name = "APPLICATIONINSIGHTS_ROLE_NAME" diff --git a/infra/container_apps/main.tf b/infra/container_apps/main.tf index abef6d4..efb38a4 100644 --- a/infra/container_apps/main.tf +++ b/infra/container_apps/main.tf @@ -8,7 +8,7 @@ provider "azurerm" { features {} } -module "container_app_dashboard_backend" { +module "container_app_ms_product" { source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=main" is_pnpg = var.is_pnpg