45 lines
764 B
Plaintext
45 lines
764 B
Plaintext
|
|
# maps
|
|||
|
|
resource "aws_instance" "foo" {
|
|||
|
|
for_each = {
|
|||
|
|
( a = "thing"
|
|||
|
|
b = "another thing"
|
|||
|
|
c = "yet another thing"
|
|||
|
|
}
|
|||
|
|
num = "3"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# sets
|
|||
|
|
resource "aws_instance" "bar" {
|
|||
|
|
for_each = toset([])
|
|||
|
|
}
|
|||
|
|
resoustance" "boo" {
|
|||
|
|
foo = aws_instance.foo["a"].num
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "bat" {
|
|||
|
|
for_each = {
|
|||
|
|
my_kr_each = {
|
|||
|
|
( a = "thing"
|
|||
|
|
b = "another thing"
|
|||
|
|
c = "yet another thing"
|
|||
|
|
}
|
|||
|
|
num = "3"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# sets
|
|||
|
|
resource "aws_instance" "bar" {
|
|||
|
|
for_each = toset([])
|
|||
|
|
}
|
|||
|
|
resoustance" "boo" {
|
|||
|
|
foo = aws_instance.foo["a"].num
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "bat" {
|
|||
|
|
for_each = {
|
|||
|
|
my_key = aws_instance.boo.foo
|
|||
|
|
ey = aws_instance.boo.foo
|
|||
|
|
}
|
|||
|
|
foo = each.valu<6C><75><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e
|
|||
|
|
}
|
|||
|
|
|