mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-15 19:10:46 -04:00
20 lines
373 B
HCL
20 lines
373 B
HCL
terraform {
|
|
required_providers {
|
|
test = {
|
|
source = "test"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "module_input" {
|
|
type = string
|
|
validation {
|
|
condition = provider::test::is_true(var.module_input == "hello")
|
|
error_message = "The module_input variable must be set to \"hello\""
|
|
}
|
|
}
|
|
|
|
module "example" {
|
|
source = "./modules/example"
|
|
in = var.module_input
|
|
}
|