mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 10:47:34 -05:00
22 lines
377 B
HCL
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")
|
|
}
|