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

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