diff --git a/_variables.tf b/_variables.tf index 424a1a5..b7a5ed8 100644 --- a/_variables.tf +++ b/_variables.tf @@ -135,4 +135,44 @@ variable "response_page_path" { variable "lambda_edge" { default = [] description = "Lambda EDGE configuration" +} + +variable "default_threshold" { + description = "The default threshold for the metric." + default = 5 +} + +variable "default_evaluation_periods" { + description = "The default amount of evaluation periods." + default = 2 +} + +variable "default_period" { + description = "The default evaluation period." + default = 60 +} + +variable "default_comparison_operator" { + description = "The default comparison operator." + default = "GreaterThanOrEqualToThreshold" +} + +variable "default_statistic" { + description = "The default statistic." + default = "Average" +} +variable "alarms" { + type = map(any) + default = {} + description = < and from a valid certificate + hosted_zone = "example.com" + hostname_create = true + + alarms = { + "TotalErrorRate" = { + threshold = 1 #(%) + } + "5xxErrorRate" = { + threshold = 5 #(%) + } + } +}