github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl/build-var-in-pp.pkr.hcl (about)

     1  source "null" "example" {
     2    communicator = "none"
     3  }
     4  
     5  build {
     6    name    = "example"
     7    sources = ["source.null.example"]
     8  
     9    post-processor "shell-local" {
    10      inline = ["echo 2 > ${build.name}.2.txt"]
    11    }
    12  }