Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated status cake alerts goup list #792

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
}
Loading