github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl/vars-in-build-block.pkr.hcl (about) 1 variable "name" { 2 type = string 3 default = "example" 4 } 5 6 variable "description" { 7 type = string 8 default = "blah blah blah" 9 } 10 11 source "null" "example" { 12 communicator = "none" 13 } 14 15 build { 16 name = var.name 17 description = var.description 18 19 sources = ["source.null.example"] 20 21 post-processor "shell-local" { 22 inline = ["echo 2 > ${build.name}.2.txt"] 23 } 24 }