github.com/hashicorp/packer@v1.14.3/datasource/http/test-fixtures/404_url.pkr.hcl (about)

     1  
     2  source "null" "example" {
     3    communicator = "none"
     4  }
     5  
     6  data "http" "basic" {
     7    url = "https://developer.hashicorp.com/packer/thisWillFail"
     8  }
     9  
    10  locals {
    11    url = "${data.http.basic.url}"
    12  }
    13  
    14  build {
    15    name = "mybuild"
    16    sources = [
    17      "source.null.example"
    18    ]
    19    provisioner "shell-local" {
    20      inline = [
    21        "echo data is ${local.url}",
    22      ]
    23    }
    24  }