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-iteration/test-fixtures/template.pkr.hcl

34 lines
699 B

source "null" "example" {
communicator = "none"
}
data "hcp-packer-iteration" "hardened-source" {
bucket_name = "hardened-ubuntu-16-04"
channel = "packer-acc-test"
}
data "hcp-packer-image" "aws" {
bucket_name = "hardened-ubuntu-16-04"
iteration_id = "${data.hcp-packer-iteration.hardened-source.id}"
cloud_provider = "aws"
region = "us-east-1"
}
locals {
foo = "${data.hcp-packer-iteration.hardened-source.id}"
bar = "${data.hcp-packer-image.aws.id}"
}
build {
name = "mybuild"
sources = [
"source.null.example"
]
provisioner "shell-local" {
inline = [
"echo data is ${local.foo}",
"echo data is ${local.bar}"
]
}
}