mirror of
https://github.com/hashicorp/terraform.git
synced 2026-04-15 22:10:37 -04:00
14 lines
224 B
Terraform
14 lines
224 B
Terraform
|
|
|
||
|
|
variable "input" {
|
||
|
|
type = string
|
||
|
|
|
||
|
|
validation {
|
||
|
|
condition = var.input == "something very specific"
|
||
|
|
error_message = "this should definitely fail"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "test_resource" "resource" {
|
||
|
|
value = var.input
|
||
|
|
}
|