For more background, see https://alan.ivey.dev/posts/2020/creating-an-ami-for-arm/.
Install Packer 1.5 or higher (template developed against v1.5.6). Ensure you have appropriate permissions for creating AMIs with Packer and Packer can access in your shell environment.
Build:
packer build centos8.pkr.hcl