mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
for and foreach demo
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user