You can copy a custom image from one region to another region and use the copy of the custom image to create simple application servers in the destination region. This implements seamless migration of simple application servers across regions. You can also use the image sharing feature to share the copy of the custom image to Elastic Compute Service (ECS). Then, you can use the shared image copy to create ECS instances. This way, you can seamlessly migrate data from simple application servers to ECS instances across regions. This topic describes how to copy a custom image of a simple application server.
Prerequisites
A custom image is created. For more information, see Create a custom image.
Background information
If you want to create a simple application server that has the same configurations as an existing simple application server in a different region, you can use the image copy feature. After you create a custom image based on an existing simple application server, you can copy the custom image from the current region to another region. Then, you can use the image copy to create simple application servers that have the same configurations as the existing one in the destination region.
When you copy a custom image, Alibaba Cloud creates a snapshot of the source image in the destination region. You cannot check the snapshot. What you need to pay attention to is that the snapshot and custom image copy occupy the resource quota within your Alibaba Cloud account. For more information, see Limits on other resources.
If the custom image copy is deleted, you cannot reset the simple application servers that are created based on the custom image copy.
Procedure
Log on to the Simple Application Server console.
In the left-side navigation pane, click Image.
On the Images page, find the custom image that you want to copy.
In the Actions column, choose
.In the Copy Image dialog box, configure parameters based on your business requirements.
Parameter description:
Destination Region: Select a destination region to which you want to copy the custom image.
Name of the custom image: Enter a name for the custom image copy for identification. Example: testcopyimage.
Description: Enter a description for the custom image copy. The default description contains the ID and region of the custom image. You can modify the description.
(Optional) Select I have understood and agreed to the Cross-border Compliance Commitments.
The Cross-border Compliance Commitments are displayed only if you select a cross-border region for the Destination Region parameter.
Click Confirm.
You can view the information of the custom image in the Copying state on the Image page. Wait until the image copy task is complete.
NoteThe Server ID/Name column of the custom image copy in the destination region is empty.
FAQ
Q: Will the custom image copy be released together with the source simple application server?
A: No. If you release a simple application server, the snapshot and custom image that are created based on the server are also released. The data cannot be restored. We recommend that you copy the custom image to another region in advance in case you want to use the custom image later. You can also share the custom image to ECS. For more information, see Migrate data from a simple application server to an ECS instance.