3 ms·
Pretty simple. # you don't need to state the list in here variable "test" { type = "list" default = ["test1", "test2"] } module "test_module" { test = "${var.
by doh 10y ago
Pretty simple.
# you don't need to state the list in here
variable "test" {
type = "list"
default = ["test1", "test2"]
}
module "test_module" {
test = "${var.test}"
}
# in module test_module
variable "test" {
type = "list"
}
# and now you can use it as ${var.test}
Hopefully it helps