I'm running packer on a Windows Server box and invoking it with PowerShell. I want the script itself to throw an error if the packer build fails. However, when I get
packer build to fail on purpose (e.g. by supplying incorrect AWS access keys) it still returns a 0 exit code as if it completed successfully.
Is there any way to get packer to return a non-zero exit code on failure?
I've reviewed the documentation but to no avail. The closest thing was to add a -on-error=abort option, but that didn't make an impact.
Cheers,
Dave