How do I create and copy an Amazon Machine Image (AMI) from one AWS Region to another?

2 minute read
0

I want to launch a copy of my Amazon Elastic Cloud Compute (Amazon EC2) instance to serve clients in other geographical regions and to create redundancy in my application. How do I create an Amazon Machine Image (AMI) of my Amazon EC2 instance and then copy the AMI to another AWS Region?

Resolution

To create a copy of your AMI in another AWS Region, follow these steps:

  1. Create an AMI of your EC2 instance:
    To create a Linux AMI, see Create your own AMI.
    To create a Windows AMI, see Create a custom Windows AMI.
  2. Copy the AMI of your EC2 instance to another AWS Region:
    To copy a Linux AMI, see Copy an AMI.
    To copy a Windows AMI, see Copy an AMI.

After the copy operation completes, launch a new EC2 instance from your AMI in the new AWS Region.

Copying an encrypted AMI

For more information, see the following:

Copy an AMI - Encryption and copying.

Share encrypted AMIs across accounts to launch instances in a single step.

How to share encrypted AMIs across accounts to launch encrypted EC2 instances.

Linux error message "This AMI was copied from an AMI with a kernel that is unavailable in the destination region: {Image ID}"

Linux paravirtual (PV) AMIs aren't supported in all AWS Regions. If you receive this message, you can create a new HVM instance, and then attach new EBS volumes to the HVM instance. Then, copy over data from the EBS volumes attached to the old PV instance. For more information, see Linux AMI virtualization types.


Related information

Best practices for Amazon EC2

How can I share an encrypted Amazon EBS volume with another AWS account?

Amazon PV-GRUB Kernel Image IDs

AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago