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

16 lines
255 B
HCL

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