Skip to content

Commit fd0ecd6

Browse files
committed
fix: Cannot refer to other var in validation
1 parent 49e1a79 commit fd0ecd6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -780,11 +780,6 @@ variable "datadog_api_key" {
780780
type = string
781781
default = ""
782782
sensitive = true
783-
784-
validation {
785-
condition = var.monitor_lambda_datadog ? length(var.datadog_api_key) > 0 : true
786-
error_message = "Datadog API key must be provided when monitoring Lambda with Datadog"
787-
}
788783
}
789784

790785
# ╻ ╻┏━┓┏━╸ ┏━┓┏━╸┏━╸┏━┓╻┏┓╻┏━╸

0 commit comments

Comments
 (0)