terraform/configs/testdata/invalid-files/variable-validation-conditi...

12 lines
202 B
HCL

locals {
foo = 1
}
variable "validation" {
validation {
condition = local.foo == var.validation # ERROR: Invalid reference in variable validation
error_message = "Must be five."
}
}