mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-10 09:21:58 -04:00
12 lines
265 B
HCL
12 lines
265 B
HCL
variable "module_name" {
|
|
type = string
|
|
const = true
|
|
validation {
|
|
condition = var.module_name == "example"
|
|
error_message = "The module_name variable must be set to \"example\""
|
|
}
|
|
}
|
|
|
|
module "example" {
|
|
source = "./modules/${var.module_name}"
|
|
}
|