github.com/hashicorp/packer@v1.14.3/command/test-fixtures/validate/build_with_vars.pkr.hcl (about) 1 variable "target" { 2 type = string 3 default = "chocolate.txt" 4 } 5 6 source "file" "chocolate" { 7 target = var.target 8 content = "chocolate" 9 } 10 11 build { 12 sources = ["source.file.chocolate"] 13 }