Skip to content

Commit 45ec3c3

Browse files
committed
feat(aws_instance): treat missing data on cloudwatchmetric
1 parent 5a0fab2 commit 45ec3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ variable "metric_treat_missing_data" {
284284
description = "Sets how this alarm is to handle missing data points. The following values are supported: `missing`, `ignore`, `breaching` and `notBreaching`. Defaults to `missing`."
285285
default = "missing"
286286
validation {
287-
condition = contains(["missing", "ignore", "breaching", "notBreaching"])
287+
condition = var.metric_treat_missing_data == "missing" && var.metric_treat_missing_data == "ignore" && var.metric_treat_missing_data == "breaching" && var.metric_treat_missing_data == "notBreaching"
288288
error_message = "Only following values are supported: `missing`, `ignore`, `breaching`, and `notBreaching`. By default, it is set to `missing`."
289289
}
290290
}

0 commit comments

Comments
 (0)