Files
Andrei Ciobanu 013097b631 Ephemeral variables (#3108)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-09-10 07:45:23 -04:00

29 lines
618 B
HCL

// the provider-plugin tests uses the -plugin-cache flag so terraform pulls the
// test binaries instead of reaching out to the registry.
terraform {
required_providers {
simple = {
source = "registry.opentofu.org/hashicorp/simple"
}
}
}
provider "simple" {
alias = "s1"
}
variable "in" {
ephemeral = true
type = string
}
variable "in2" {
ephemeral = true
type = string
default = "in2 default value just to test the validations"
validation {
condition = var.in2 != "fail_on_this_value"
error_message = "variable 'in2' value '${var.in2}' cannot be 'fail_on_this_value'"
}
}