[AWS] How to copy AMI of EC2 instance to another region
table of contents
My name is Teraoka and I am an infrastructure engineer.
This time, I will introduce a convenient function, how to copy the created AMI to another region.
1. Create AMI
First, create an AMI from the instance you want to copy.
You can create it by selecting the instance you want to copy > Image > Create Image.
This time, I created an AMI in advance with the name "AMI-Copy-Test" in the Tokyo region.
2. Copying an AMI
Copy the created AMI to another region.
This time, I would like to copy the AMI created in the Tokyo region to the Oregon region.
Select the AMI you want to copy from the AMI list > You can copy the AMI to another region.
When you select Copy AMI, the following screen will be displayed.
Select "US West(Oregon)" as the destination region.
Rename it to "AMI-Copy-Test-Oregon" and click "Copy AMI".
The AMI copy operation has started.
Let's take a look at the list of AMIs in the destination Oregon region.
The AMI you copied earlier from the Tokyo region is displayed.
By creating an instance from this AMI
It is possible to build an instance with the exact same configuration in the Oregon region.
3. summary
The work itself is very simple, but it is a useful feature.
In addition to AMI, AWS allows you to copy RDS snapshots, etc.
It has become quite easy to build infrastructure with the same configuration in different regions.
Everyone please try it.