Skip to content

Commit

Permalink
Updated status cake alerts goup list (#792)
Browse files Browse the repository at this point in the history
Co-authored-by: Venkata Challa <[email protected]>
  • Loading branch information
VenkataChalla554 and Venkata Challa authored Apr 18, 2024
1 parent 341269b commit 1024bf2
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 = "IDs 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 1024bf2

Please sign in to comment.