github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-provisioner-destroy-locals/main.tf (about) 1 locals { 2 value = "local" 3 } 4 5 resource "aws_instance" "foo" { 6 provisioner "shell" { 7 command = "${local.value}" 8 when = "create" 9 } 10 provisioner "shell" { 11 command = "${local.value}" 12 when = "destroy" 13 } 14 }