github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/configs/testdata/invalid-files/variable-validation-condition-badref.tf (about)

     1  
     2  locals {
     3    foo = 1
     4  }
     5  
     6  variable "validation" {
     7    validation {
     8      condition     = local.foo == var.validation # ERROR: Invalid reference in variable validation
     9      error_message = "Must be five."
    10    }
    11  }