diff --git a/terraform/application/application.tf b/terraform/application/application.tf index 687efe1c0a..48e75749da 100644 --- a/terraform/application/application.tf +++ b/terraform/application/application.tf @@ -51,6 +51,7 @@ module "web_application" { kubernetes_secret_name = module.application_configuration.kubernetes_secret_name docker_image = var.docker_image + replicas = var.app_replicas } module "worker_application" { diff --git a/terraform/application/config/production/variables.tfvars.json b/terraform/application/config/production/variables.tfvars.json index 0a3256e74d..bb9f11aaf6 100644 --- a/terraform/application/config/production/variables.tfvars.json +++ b/terraform/application/config/production/variables.tfvars.json @@ -1,5 +1,6 @@ { "app_environment": "production", + "app_replicas": 2, "cluster": "production", "dqt_api_url": "https://teacher-qualifications-api.education.gov.uk", "enable_monitoring": true, diff --git a/terraform/application/variables.tf b/terraform/application/variables.tf index 29cfa4bfff..72ab32e927 100644 --- a/terraform/application/variables.tf +++ b/terraform/application/variables.tf @@ -2,6 +2,12 @@ variable "app_environment" { type = string } +variable "app_replicas" { + type = number + description = "Number of replicas of the web app" + default = 1 +} + variable "app_suffix" { type = string default = ""