mirror of
https://github.com/opentofu/opentofu.git
synced 2026-05-28 04:15:54 -04:00
9 lines
186 B
HCL
9 lines
186 B
HCL
resource "aws_instance" "foo" {
|
|
name = "foo ${count.index}"
|
|
count = 3
|
|
}
|
|
|
|
resource "aws_instance" "bar" {
|
|
foo_name = "${aws_instance.foo.*.name[count.index]}"
|
|
count = 3
|
|
}
|