github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/terraform/test-fixtures/plan-computed-multi-index/main.tf (about) 1 resource "aws_instance" "foo" { 2 count = 2 3 compute = "ip.#" 4 } 5 6 resource "aws_instance" "bar" { 7 count = 1 8 foo = "${aws_instance.foo.*.ip[count.index]}" 9 }