Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions infrastructure/environments/preprod/variables.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ seed_demo_data = false
allowed_paths = ["/notifications/message-status/create"]
enable_alerting = true
enable_notifications_jobs_schedule = true
min_replicas = 2
1 change: 1 addition & 0 deletions infrastructure/environments/prod/variables.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ enable_alerting = true
use_apex_domain = true
cae_zone_redundancy_enabled = true
enable_notifications_jobs_schedule = true
min_replicas = 2
7 changes: 4 additions & 3 deletions infrastructure/modules/container-apps/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ module "webapp" {
{ APPLICATIONINSIGHTS_CONNECTION_STRING = var.app_insights_connection_string },
var.deploy_database_as_container ? { DATABASE_PASSWORD = resource.random_password.admin_password[0].result } : {}
)
is_web_app = true
port = 8000
probe_path = "/healthcheck"
is_web_app = true
port = 8000
probe_path = "/healthcheck"
min_replicas = var.min_replicas

}

Expand Down
5 changes: 5 additions & 0 deletions infrastructure/modules/container-apps/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ variable "container_app_environment_id" {
type = string
}

variable "min_replicas" {
description = "Minimum number of container replicas"
type = number
}

variable "default_domain" {
description = "The container app environment default domain"
type = string
Expand Down
1 change: 1 addition & 0 deletions infrastructure/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ module "container-apps" {
resource_group_name_infra = local.resource_group_name
enable_notifications_jobs_schedule = var.enable_notifications_jobs_schedule
queue_length_alert_threshold = var.queue_length_alert_threshold
min_replicas = var.min_replicas
}
6 changes: 6 additions & 0 deletions infrastructure/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ variable "deploy_container_apps" {
default = true
}

variable "min_replicas" {
description = "Minimum number of container replicas"
type = number
default = 1
}

variable "app_short_name" {
description = "Application short name (6 characters)"
type = string
Expand Down