Skip to content

Commit

Permalink
Updated status cake alerts goup list
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkata Challa committed Apr 18, 2024
1 parent 341269b commit 00c13fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions terraform/statuscake.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ resource "statuscake_uptime_check" "alert" {
}

resource "statuscake_ssl_check" "domain-alert" {
count = var.statuscake_ssl_contact_group != null ? 1 : 0
count = length(var.statuscake_ssl_contact_groups) > 0 ? 1 : 0

check_interval = 3600 # Check once per hour
contact_groups = [var.statuscake_ssl_contact_group]
contact_groups = var.statuscake_ssl_contact_groups
follow_redirects = true

alert_config {
Expand Down
8 changes: 4 additions & 4 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ variable "domain" {
type = string
}

variable "statuscake_ssl_contact_group" {
type = string
default = null
description = "ID of the StatusCake contact group. If empty, SSL check is not enabled"
variable "statuscake_ssl_contact_groups" {
type = list(string)
default = []
description = "ID's of the StatusCake contact group. If empty, SSL check is not enabled"
}

locals {
Expand Down
2 changes: 1 addition & 1 deletion terraform/workspace_variables/production.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
}
},
"domain": "teaching-identity.education.gov.uk",
"statuscake_ssl_contact_group": 249142
"statuscake_ssl_contact_groups": [288912, 282453]
}

0 comments on commit 00c13fa

Please sign in to comment.