github.com/trawler/terraform@v0.10.8-0.20171106022149-4b1c7a1d9b48/terraform/test-fixtures/apply-provisioner-destroy-ref/main.tf (about)

     1  resource "aws_instance" "bar" {
     2      key = "hello"
     3  }
     4  
     5  resource "aws_instance" "foo" {
     6      foo = "bar"
     7  
     8      provisioner "shell" {
     9          foo  = "${aws_instance.bar.key}"
    10          when = "destroy"
    11      }
    12  }