diff --git a/terraform/application/application.tf b/terraform/application/application.tf index 48e75749da..eda223a746 100644 --- a/terraform/application/application.tf +++ b/terraform/application/application.tf @@ -52,6 +52,7 @@ module "web_application" { docker_image = var.docker_image replicas = var.app_replicas + enable_logit = var.enable_logit } module "worker_application" { @@ -72,4 +73,6 @@ module "worker_application" { docker_image = var.docker_image command = ["bundle", "exec", "sidekiq", "-C", "./config/sidekiq.yml"] probe_command = ["pgrep", "-f", "sidekiq"] + + enable_logit = var.enable_logit } diff --git a/terraform/application/config/development/variables.tfvars.json b/terraform/application/config/development/variables.tfvars.json index 787219eb2a..dcc01ae6e6 100644 --- a/terraform/application/config/development/variables.tfvars.json +++ b/terraform/application/config/development/variables.tfvars.json @@ -2,6 +2,7 @@ "app_environment": "development", "cluster": "test", "dqt_api_url": "https://dev.teacher-qualifications-api.education.gov.uk", + "enable_logit": true, "enable_monitoring": false, "external_hostname": "dev.apply-for-qts-in-england.education.gov.uk", "namespace": "tra-development", diff --git a/terraform/application/config/preproduction/variables.tfvars.json b/terraform/application/config/preproduction/variables.tfvars.json index d62cb57a87..d767764d57 100644 --- a/terraform/application/config/preproduction/variables.tfvars.json +++ b/terraform/application/config/preproduction/variables.tfvars.json @@ -2,6 +2,7 @@ "app_environment": "preproduction", "cluster": "test", "dqt_api_url": "https://preprod.teacher-qualifications-api.education.gov.uk", + "enable_logit": true, "enable_monitoring": false, "external_hostname": "preprod.apply-for-qts-in-england.education.gov.uk", "namespace": "tra-test", diff --git a/terraform/application/config/review/variables.tfvars.json b/terraform/application/config/review/variables.tfvars.json index 3aea2e3332..35c48809a7 100644 --- a/terraform/application/config/review/variables.tfvars.json +++ b/terraform/application/config/review/variables.tfvars.json @@ -3,6 +3,7 @@ "cluster": "test", "deploy_azure_backing_services": false, "dqt_api_url": "https://dev.teacher-qualifications-api.education.gov.uk", + "enable_logit": true, "enable_monitoring": false, "namespace": "tra-development", "uploads_storage_environment_tag": "Test" diff --git a/terraform/application/variables.tf b/terraform/application/variables.tf index 72ab32e927..9880a5175f 100644 --- a/terraform/application/variables.tf +++ b/terraform/application/variables.tf @@ -43,6 +43,11 @@ variable "dqt_api_url" { type = string } +variable "enable_logit" { + type = bool + default = false +} + variable "enable_monitoring" { type = bool default = true