github.com/hashicorp/packer@v1.14.3/hcl2template/testdata/build/provisioner_build_name_interpolation.pkr.hcl (about) 1 2 // starts resources to provision them. 3 build { 4 name = "build-name-test" 5 sources = [ 6 "source.virtualbox-iso.ubuntu-1204", 7 ] 8 9 provisioner "shell" { 10 name = build.name 11 slice_string = ["${build.name}"] 12 } 13 } 14 15 source "virtualbox-iso" "ubuntu-1204" { 16 } 17