The Amazon plugin is able to create Amazon AMIs through Packer. To achieve this, the plugin comes with multiple builders, data sources, and a post-processor to build the AMI depending on the strategy you want to use.
- amazon-ebs - Create EBS-backed AMIs by launching a source AMI and re-packaging it into a new AMI after provisioning. If in doubt, use this builder, which is the easiest to get started with.
- amazon-instance - Create instance-store AMIs by launching and provisioning a source instance, then rebundling it and uploading it to S3.
- amazon-chroot - Create EBS-backed AMIs from an existing EC2 instance by mounting the root device and using a Chroot environment to provision that device. This is an advanced builder and should not be used by newcomers. However, it is also the fastest way to build an EBS-backed AMI since no new EC2 instance needs to be launched.
- amazon-ebssurrogate - Create EBS
-backed AMIs from scratch. Works similarly to the
chroot
builder but does not require running in AWS. This is an advanced builder and should not be used by newcomers.
- amazon-ami - Filter and fetch an Amazon AMI to output all the AMI information.
- amazon-secretsmanager - Retrieve information about a Secrets Manager secret version, including its secret value.
- amazon-parameterstore - Retrieve information about a parameter in SSM.
- amazon-import - The Amazon Import post-processor takes an OVA artifact from various builders and imports it to an AMI available to Amazon Web Services EC2.