From d91006ebbe5938ec1482e0ae0a00cff4166cef13 Mon Sep 17 00:00:00 2001 From: Venkata Challa Date: Thu, 18 Apr 2024 12:18:49 +0100 Subject: [PATCH] Updated status cake alerts goup list --- terraform/statuscake.tf | 2 +- terraform/variables.tf | 6 +++--- terraform/workspace_variables/production.tfvars.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/terraform/statuscake.tf b/terraform/statuscake.tf index b9cc837ea..c6407db3b 100644 --- a/terraform/statuscake.tf +++ b/terraform/statuscake.tf @@ -25,7 +25,7 @@ resource "statuscake_ssl_check" "domain-alert" { count = var.statuscake_ssl_contact_group != null ? 1 : 0 check_interval = 3600 # Check once per hour - contact_groups = [var.statuscake_ssl_contact_group] + contact_groups = var.statuscake_ssl_contact_group follow_redirects = true alert_config { diff --git a/terraform/variables.tf b/terraform/variables.tf index 3185f4565..1df0e2ca5 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -142,9 +142,9 @@ variable "domain" { } variable "statuscake_ssl_contact_group" { - type = string - default = null - description = "ID of the StatusCake contact group. If empty, SSL check is not enabled" + type = list(string) + default = [] + description = "ID's of the StatusCake contact group. If empty, SSL check is not enabled" } locals { diff --git a/terraform/workspace_variables/production.tfvars.json b/terraform/workspace_variables/production.tfvars.json index c4533ce28..55e43aab6 100644 --- a/terraform/workspace_variables/production.tfvars.json +++ b/terraform/workspace_variables/production.tfvars.json @@ -23,5 +23,5 @@ } }, "domain": "teaching-identity.education.gov.uk", - "statuscake_ssl_contact_group": 249142 + "statuscake_ssl_contact_group": [288912, 282453] }