Skip to content

Commit

Permalink
Add Statuscake SSL monitoring (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdevdfe authored Jun 14, 2023
1 parent e09f5e3 commit c87c1d6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions terraform/statuscake.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,24 @@ resource "statuscake_uptime_check" "alert" {
address = each.value.website_url
}
}

resource "statuscake_ssl_check" "domain-alert" {
for_each = var.statuscake_alerts

check_interval = 3600 # Check once per hour
contact_groups = each.value.contact_group
follow_redirects = true

alert_config {
alert_at = [3, 7, 30] # Alert 1 month, 1 week then 3 days before expiration

on_reminder = true
on_expiry = true
on_broken = true
on_mixed = true
}

monitored_resource {
address = each.value.website_name
}
}

0 comments on commit c87c1d6

Please sign in to comment.