Provider functions in variable validations (#1689)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh
2024-05-28 11:05:34 -04:00
committed by GitHub
parent cc8d6e07f4
commit 882b942575
8 changed files with 88 additions and 10 deletions

View File

@@ -7,6 +7,15 @@ terraform {
}
}
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")
}