File tree Expand file tree Collapse file tree 6 files changed +18
-3
lines changed
Expand file tree Collapse file tree 6 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ seed_demo_data = false
1313allowed_paths = [" /notifications/message-status/create" ]
1414enable_alerting = true
1515enable_notifications_jobs_schedule = true
16+ min_replicas = 2
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ enable_alerting = true
1414use_apex_domain = true
1515cae_zone_redundancy_enabled = true
1616enable_notifications_jobs_schedule = true
17+ min_replicas = 2
Original file line number Diff line number Diff line change @@ -46,9 +46,10 @@ module "webapp" {
4646 { APPLICATIONINSIGHTS_CONNECTION_STRING = var.app_insights_connection_string },
4747 var. deploy_database_as_container ? { DATABASE_PASSWORD = resource.random_password.admin_password[0 ].result } : {}
4848 )
49- is_web_app = true
50- port = 8000
51- probe_path = " /healthcheck"
49+ is_web_app = true
50+ port = 8000
51+ probe_path = " /healthcheck"
52+ min_replicas = var. min_replicas
5253
5354}
5455
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ variable "container_app_environment_id" {
2929 type = string
3030}
3131
32+ variable "min_replicas" {
33+ description = " Minimum number of container replicas"
34+ type = number
35+ }
36+
3237variable "default_domain" {
3338 description = " The container app environment default domain"
3439 type = string
Original file line number Diff line number Diff line change @@ -81,4 +81,5 @@ module "container-apps" {
8181 resource_group_name_infra = local. resource_group_name
8282 enable_notifications_jobs_schedule = var. enable_notifications_jobs_schedule
8383 queue_length_alert_threshold = var. queue_length_alert_threshold
84+ min_replicas = var. min_replicas
8485}
Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ variable "deploy_container_apps" {
1616 default = true
1717}
1818
19+ variable "min_replicas" {
20+ description = " Minimum number of container replicas"
21+ type = number
22+ default = 1
23+ }
24+
1925variable "app_short_name" {
2026 description = " Application short name (6 characters)"
2127 type = string
You can’t perform that action at this time.
0 commit comments