From d408c397fed07098034ede5c622e82ed17a0b419 Mon Sep 17 00:00:00 2001 From: John Ake Date: Mon, 2 Sep 2024 14:48:25 +0100 Subject: [PATCH] Add SSL check for find-teacher-training-courses --- terraform/aks/statuscake.tf | 1 + terraform/aks/variables.tf | 5 +++++ terraform/aks/workspace_variables/production_aks.tfvars.json | 1 + 3 files changed, 7 insertions(+) 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": {