Files
opentf/internal/command/e2etest/testdata/functions/main.tf
2024-05-28 11:05:34 -04:00

22 lines
377 B
HCL

terraform {
required_providers {
example = {
source = "opentofu/testfunctions"
version = "1.0.0"
}
}
}
variable "number" {
type = number
default = 1
validation {
condition = provider::example::echo(var.number) > 0
error_message = "number must be > ${provider::example::echo(0)}"
}
}
output "dummy" {
value = provider::example::echo("Hello Functions")
}