You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/datasource/hcp-packer-version/test-fixtures/template.pkr.hcl

34 lines
693 B

source "null" "example" {
communicator = "none"
}
data "hcp-packer-version" "hardened-source" {
bucket_name = "simple"
channel_name = "latest"
}
data "hcp-packer-artifact" "file" {
bucket_name = "simple"
version_fingerprint = "${data.hcp-packer-version.hardened-source.fingerprint}"
platform = "packer.file"
region = %q
}
locals {
foo = "${data.hcp-packer-version.hardened-source.id}"
bar = "${data.hcp-packer-artifact.file.external_identifier}"
}
build {
name = "mybuild"
sources = [
"source.null.example"
]
provisioner "shell-local" {
inline = [
"echo data is ${local.foo}",
"echo data is ${local.bar}"
]
}
}