You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/command/testdata/dynamic-module-sources/provider-function-in-const-.../main.tf

21 lines
373 B

terraform {
required_providers {
test = {
source = "test"
}
}
}
variable "module_name" {
type = string
const = true
validation {
condition = provider::test::is_true(var.module_name == "example")
error_message = "The module_name variable must be set to \"example\""
}
}
module "example" {
source = "./modules/${var.module_name}"
}