github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/plan-count-splat-reference/main.tf (about) 1 resource "aws_instance" "foo" { 2 name = "foo ${count.index}" 3 count = 3 4 } 5 6 resource "aws_instance" "bar" { 7 foo_name = "${aws_instance.foo.*.name[count.index]}" 8 count = 3 9 }