github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/plan-provisioner-cycle/main.tf (about)

     1  resource "aws_instance" "foo" {
     2      count = 3
     3  
     4      provisioner "local-exec" {
     5          command = "echo ${aws_instance.foo.0.id} ${aws_instance.foo.1.id} ${aws_instance.foo.2.id}"
     6      }
     7  }