When a VPC is provided to a template that does not exist, the build exit code is 0, instead of 1:
mfellows@matt.mit /tmp $ packer build buildagent.json
buildagent output will be in this color.
==> buildagent: Inspecting the source AMI...
==> buildagent: Creating temporary security group for this instance...
==> buildagent: The vpc ID 'vpc-12345678' does not exist (InvalidVpcID.NotFound)
Build 'buildagent' finished.
==> Builds finished. The artifacts of successful builds are:
mfellows@matt.mit /tmp $ echo $?
0
When a VPC is provided to a template that does not exist, the build exit code is 0, instead of 1: