github.com/opentofu/opentofu@v1.7.1/internal/command/testdata/test/expect_failures_inputs/main.tf (about)

     1  
     2  variable "input" {
     3    type = string
     4  
     5    validation {
     6      condition = var.input == "something very specific"
     7      error_message = "this should definitely fail"
     8    }
     9  }
    10  
    11  resource "test_resource" "resource" {
    12    value = var.input
    13  }