From 223b5e7a57843a02ae106e8dd19e912bc0cbabc7 Mon Sep 17 00:00:00 2001 From: RMcVelia Date: Mon, 13 Jan 2025 10:22:22 +0000 Subject: [PATCH] Fix ssl check statuscake monitoring Should monitor prod apex only --- terraform/application/config/production.tfvars.json | 1 + terraform/application/statuscake.tf | 2 +- terraform/application/variables.tf | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/terraform/application/config/production.tfvars.json b/terraform/application/config/production.tfvars.json index eb9be855b0..67700a0559 100644 --- a/terraform/application/config/production.tfvars.json +++ b/terraform/application/config/production.tfvars.json @@ -19,6 +19,7 @@ "enable_monitoring": true, "statuscake_contact_groups": [195955, 282453], "external_url": "https://www.claim-additional-teaching-payment.service.gov.uk/healthcheck", + "apex_url": "https://claim-additional-teaching-payment.service.gov.uk", "enable_logit": true, "dataset_name": "claim_events_production", "enable_dfe_analytics_federated_auth": true diff --git a/terraform/application/statuscake.tf b/terraform/application/statuscake.tf index 5b56946d88..7cffce66d3 100644 --- a/terraform/application/statuscake.tf +++ b/terraform/application/statuscake.tf @@ -4,7 +4,7 @@ module "statuscake" { source = "./vendor/modules/aks//monitoring/statuscake" uptime_urls = compact([module.web_application.probe_url, var.external_url]) - ssl_urls = compact([var.external_url]) + ssl_urls = compact([var.apex_url]) contact_groups = var.statuscake_contact_groups diff --git a/terraform/application/variables.tf b/terraform/application/variables.tf index bf753844df..3bd825b796 100644 --- a/terraform/application/variables.tf +++ b/terraform/application/variables.tf @@ -44,6 +44,10 @@ variable "external_url" { default = null description = "Healthcheck URL for StatusCake monitoring" } +variable "apex_url" { + default = null + description = "Apex URL for StatusCake SSL monitoring" +} variable "statuscake_contact_groups" { default = [] description = "ID of the contact group in statuscake web UI"