I’ve tried every seeming variation for specifying the artiface files, but can’t get past this failure. Am I doing something incorrectly, or is there a bug? Thanks, Mike
packer build -force -var-file=%HOME%.packer\secrets.json -only=‘step2.*’ vBoxISO
step2.null.direct_file: output will be in this color.
==> step2.null.direct_file: Running post-processor: (type artifice)
==> step2.null.direct_file (artifice): Using these artifact files: D:\VirtualBoxVMs\kcvi-export\KCVI_v0.0.1.ova
==> step2.null.direct_file: Running post-processor: (type amazon-import)
==> step2.null.direct_file: Running post-processor: (type manifest)
Build ‘step2.null.direct_file’ errored after 23 milliseconds 423 microseconds: 1 error(s) occurred:
- Post-processor failed: No ova image file found in artifact from builder
dir D:\VirtualBoxVMs\kcvi-export\KCVI_v0.0.1.ova
Directory of D:\VirtualBoxVMs\kcvi-export
09/15/2020 07:01 PM 2,744,797,696 KCVI_v0.0.1.ova
The only relevant line from the debug log is: (provides no insight to me)
packer.exe plugin: {{direct_file null false false map[] []} { false false 0 it false false <nil> { } 0xc00099f9f0 <nil>} k-virtual-machines/LINUX packer-import-{{timestamp}}.ova false map[] KCVI_v0.0.1 KCVI 0.0.1 (CentOS 7.8) [] [all] false ova {map[] map[] map[] [] false direct_file null }}
Here are the post-processors.
build {
name = "step2"
sources = ["source.null.direct_file"]
post-processor "artifice" {
files = ["${var.output_directory}\\${local.output_filename}.${local.export_format}"]
keep_input_artifact = true
}
post-processor "amazon-import" {
s3_bucket_name = "k-virtual-machines/LINUX"
profile = "it"
ami_name = "${local.output_filename}"
format = "${local.export_format}"
ami_groups = ["all"]
keep_input_artifact = true
}
}