mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-22 03:07:51 -05:00
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org> Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
29 lines
618 B
HCL
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'"
|
|
}
|
|
}
|