If there previous multiple build/rpms, the build will fail like cp a.rpm b.rpm c.rpm c.rpm is not a directory.
Edit variables.json and run dist/ami/build_ami.sh, it will build & upload AMI.
When deploying the AMI, be sure to add two more disks(sdb, sdc) to construct RAID.