diff --git a/terraform/application/application.tf b/terraform/application/application.tf index d4afd87ec6..d3cda78715 100644 --- a/terraform/application/application.tf +++ b/terraform/application/application.tf @@ -17,9 +17,12 @@ module "application_configuration" { PGSSLMODE = local.postgres_ssl_mode CANONICAL_HOSTNAME = local.canonical_hostname }) - secret_variables = { - DATABASE_URL = module.postgres.url - } + secret_variables = merge( + { + DATABASE_URL = module.postgres.url + HEARTBEAT_CHECK_URLS = join(",", values(module.statuscake[0].heartbeat_check_urls)) + } + ) } module "web_application" { diff --git a/terraform/application/config/review_Terrafile b/terraform/application/config/review_Terrafile index 65af53b11d..b4c222c13d 100644 --- a/terraform/application/config/review_Terrafile +++ b/terraform/application/config/review_Terrafile @@ -1,3 +1,3 @@ aks: source: "https://github.com/DFE-Digital/terraform-modules" - version: "main" + version: "testing" diff --git a/terraform/application/statuscake.tf b/terraform/application/statuscake.tf index be1b3f03ef..195870ebaa 100644 --- a/terraform/application/statuscake.tf +++ b/terraform/application/statuscake.tf @@ -7,4 +7,6 @@ module "statuscake" { ssl_urls = compact([var.external_url]) contact_groups = var.statuscake_contact_groups + + heartbeat_names = ["heartbeat-check"] }