NEW: example of for and list
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
|||||||
|
locals {
|
||||||
|
var1 = [
|
||||||
|
"foo",
|
||||||
|
"bar",
|
||||||
|
"acme"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
output out1 {
|
||||||
|
value = [for name in local.var1 : "${name}"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user