github.com/hashicorp/packer@v1.14.3/command/test-fixtures/validate/var-file-tests/basic.pkr.hcl (about)

     1  packer {
     2    required_version = ">= v1.0.0"
     3  }
     4  
     5  variable "test" {
     6   type = string
     7   default = null
     8  }
     9  
    10  source "file" "chocolate" {
    11    target = "chocolate.txt"
    12    content = "chocolate"
    13  }
    14  
    15  build {
    16    sources = ["source.file.chocolate"]
    17  }