Building an Amazon Machine Image
Packer supports a wide variety of plugins that are used by the program to target a specific image format. For our example, we are going to target the Amazon Machine Image (AMI) format.
There are other build targets for Docker, Azure, Google Cloud, and others. You may find a list of other build targets here: https://www.packer.io/docs/builders/.
For images that are used in cloud environments, Packer plugins generally take an existing image that lives on the cloud provider and lets you repackage and upload the image to the service.
And, if you need to build multiple images for multiple cloud providers, containers, Packer can do simultaneous builds.
For Amazon, there are currently four methods for building an AMI: