github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl/empty_object/var.pkr.hcl (about)

     1  
     2  variable "foo" {
     3    default = []
     4  }
     5  
     6  variable "bar" {
     7    default = {}
     8  }
     9  
    10  source "file" "base" {
    11  }
    12  
    13  build {
    14    source "sources.file.base" {
    15        target = "${var.bar.baz}.txt"
    16        content = var.foo[0]
    17    }
    18  }