github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-provisioner-destroy-module/child/main.tf (about) 1 variable "key" {} 2 3 resource "aws_instance" "foo" { 4 foo = "bar" 5 6 provisioner "shell" { 7 command = "${var.key}" 8 when = "destroy" 9 } 10 }