packer-cn/command/test-fixtures/validate/build_with_vars.pkr.hcl

14 lines
192 B
HCL

variable "target" {
type = string
default = "chocolate.txt"
}
source "file" "chocolate" {
target = var.target
content = "chocolate"
}
build {
sources = ["source.file.chocolate"]
}