3 ms·
I'm the most excited about the _List and Map Types_. It was a huge pain to concatenate strings in arrays to move them and then parse them again.
by doh 10y ago
I'm the most excited about the _List and Map Types_. It was a huge pain to concatenate strings in arrays to move them and then parse them again.
- Rapzid 10y agoHave 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