3 ms·
Have you been able to find the docs on how to use them?! I turned up a few list methods in the interpolation docs, but didn't see how to actually compose a list
by Rapzid 10y ago
Have you been able to find the docs on how to use them?! I turned up a few list methods in the interpolation docs, but didn't see how to actually compose a list. I'm still having to send module outputs as a space separated string then join(split( it into my IAM policies :|
- nivertech 10y agohttps://www.terraform.io/docs/configuration/variables.html https://www.terraform.io/docs/configuration/variables.html
- doh 10y agoPretty 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