github.com/pbthorste/terraform@v0.8.6-0.20170127005045-deb56bd93da2/terraform/test-fixtures/apply-provisioner-multi-self-ref-single/main.tf (about)

     1  resource "aws_instance" "foo" {
     2      count = 3
     3      foo = "number ${count.index}"
     4  
     5      provisioner "shell" {
     6          command = "${aws_instance.foo.0.foo}"
     7          order   = "${count.index}"
     8      }
     9  }