diff --git a/terraform/aks/statuscake.tf b/terraform/aks/statuscake.tf index aa40ea662a..f05381761e 100644 --- a/terraform/aks/statuscake.tf +++ b/terraform/aks/statuscake.tf @@ -4,6 +4,7 @@ module "statuscake" { source = "./vendor/modules/aks//monitoring/statuscake" uptime_urls = compact(concat([module.web_application["main"].probe_url], local.statuscake_additional_hostnames)) + ssl_urls = compact([var.external_url]) contact_groups = var.statuscake_contact_groups } diff --git a/terraform/aks/variables.tf b/terraform/aks/variables.tf index 7c4559b23c..156653b2e4 100644 --- a/terraform/aks/variables.tf +++ b/terraform/aks/variables.tf @@ -40,6 +40,11 @@ variable "enable_monitoring" { variable "enable_logit" { default = false } +variable "external_url" { + default = null + description = "Healthcheck URL for StatusCake monitoring" +} + variable "statuscake_contact_groups" { type = list(number) default = [] diff --git a/terraform/aks/workspace_variables/production_aks.tfvars.json b/terraform/aks/workspace_variables/production_aks.tfvars.json index 8d985674bb..9691dd27d6 100644 --- a/terraform/aks/workspace_variables/production_aks.tfvars.json +++ b/terraform/aks/workspace_variables/production_aks.tfvars.json @@ -27,6 +27,7 @@ "enable_monitoring": true, "enable_logit": true, "statuscake_contact_groups": [204421, 282453], + "external_url": "https://find-teacher-training-courses.service.gov.uk/ping", "postgres_flexible_server_sku": "GP_Standard_D4ds_v5", "postgres_enable_high_availability": true, "postgres_azure_maintenance_window": {