github.com/Kevinklinger/open_terraform@v0.11.12-beta1/terraform/test-fixtures/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  }