diff --git a/main.tf b/main.tf index d39ffff72f958eb579583ffc6b26e8525bff8459..6681ebaf45c9f99f90ce3bad11625cf9758847a9 100644 --- a/main.tf +++ b/main.tf @@ -144,4 +144,6 @@ module "uptime_monitoring" { project = var.project email_address = var.alerting_email_address monitored_domain = var.dns_name + uptime_timeout = var.alerting_uptime_timeout + uptime_period = var.alerting_uptime_period } diff --git a/variables.tf b/variables.tf index 08f94f53e18bd6571f1633674402fb2b655b8cc8..d903a8ce2231dbbbaf34db302ec4333e74190ae9 100644 --- a/variables.tf +++ b/variables.tf @@ -94,3 +94,14 @@ Email address for basic uptime alerts. If empty (the default) no alerting will b EOT } +variable "alerting_uptime_timeout" { + default = "30s" + type = string + description = "timeout for http polling" +} + +variable "alerting_uptime_period" { + type = string + default = "300s" + description = "Frequency of uptime checks" +}