While setting up packer for the first time in ages I found a little cracklib quirk when using amazon linux while following the instructions from the website.
Let get into it!
Packer setup
HashiCorp has some great documentation here on getting started with packer.
Install Packer | Packer - HashiCorp LearnPacker