github.com/hashicorp/packer@v1.14.3/command/test-fixtures/hcl-only-except/build.pkr.hcl (about)

     1  source "file" "chocolate" {
     2    content = "chocolate"
     3    target = "chocolate.txt"
     4  }
     5  
     6  source "file" "vanilla" {
     7    content = "vanilla"
     8    target = "vanilla.txt"
     9  }
    10  
    11  source "file" "cherry" {
    12    content = "cherry"
    13    target = "cherry.txt"
    14  }
    15  
    16  build {
    17    source "file.cherry" {
    18  
    19    }
    20  }
    21  
    22  build {
    23    name = "my_build"
    24    sources = [
    25      "file.chocolate",
    26      "file.vanilla",
    27    ]
    28  }