opentofu/terraform/test-fixtures/plan-count-splat-reference/main.tf
Martin Atkins 58f5257678 core: context test for partially-unknown splat lists
This is a context test for the behavior enabled by #14135, as some
insurance to decrease the chance that we break it again.
2017-05-04 16:55:32 -07:00

10 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
}