AMI packer build scripts need error checking
Summary
Add error checking to packer update-script-*.sh
AMI build scripts.
Proposal
The AMI packer build scripts at support/packer/update-script-*.sh
have no error checking, so it sometimes makes it difficult to determine the root cause of an error since the error may have occurred several lines above where it was eventually reported.
Adding error checking in these scripts will make debugging easier and help diagnose any issues just by looking at the script output.
Adding a set -x
and testing may be sufficient.
References
Edited by Andrew Patterson