for and foreach demo

This commit is contained in:
Edward Viaene
2019-10-30 16:05:22 +01:00
parent 5d9eeb6c4c
commit a83f7669ab
10 changed files with 89 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
variable "list1" {
type = list(string)
default = [1, 10, 9, 101, 3]
}
variable "list2" {
type = list(string)
default = ["apple", "pear", "banana", "mango"]
}
variable "map1" {
type = map(number)
default = {
"apple" = 5
"pear" = 3
"banana" = 10
"mango" = 0
}
}