How do I create an AMI that is based on my EBS-backed EC2 instance?

Last updated: 2019-07-05

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?  

Resolution

Amazon Machine Images (AMIs) are archival copies of instances that you can use to launch other instances. If you have an Amazon Elastic Block Store (Amazon EBS)-backed Amazon EC2 instance, 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

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.


Did this article help you?

Anything we could improve?


Need more help?