How do I create an AMI that is based on my EBS-backed EC2 instance?
Last updated: 2019-12-18
I want to create a backup or launch multiple copies of my Amazon Elastic Compute Cloud (Amazon EC2) instance, or I received a maintenance notification suggesting that I create an Amazon Machine Image (AMI) of my instance. What’s an AMI, and how do I create one?
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 Creating an Amazon EBS-Backed Linux AMI.
- If your instance is running Windows, see Creating a Custom Windows AMI.