How do I create an AMI that is based on my EBS-backed EC2 instance?
Last updated: 2019-12-18
Resolution
Amazon Machine Images (AMIs) are archival copies of instances that you can use to launch other instances. If you have an Amazon EC2 instance that's backed by an Amazon Elastic Block Store (Amazon EBS), use custom AMIs to launch multiple copies of one instance, or use a custom AMI as a backup solution.
By default, when you create an AMI from an instance, snapshots are taken of each EBS volume attached to the instance. AMIs can launch with multiple EBS volumes attached, allowing you to replicate both an instance's configuration and the state of all the EBS volumes that are attached to that instance.
Note: Instances created from AMIs do not retain or copy any data stored in instance store volumes. The source instance you create the AMI from retains all data that is stored in the instance store.
To create an AMI
- If your instance is running Linux, follow the instructions at Create an Amazon EBS-Backed Linux AMI.
- If your instance is running Windows, see Create a custom Windows AMI.
Note: To maintain data consistency, your instance reboots during the AMI creation process, but the public IP address and instance store volumes for your instance remain the same.