Share a custom image to ECS

更新时间:
复制 MD 格式

You can share custom images to ECS. If your Simple Application Server instance configuration no longer meets your business needs, or if you want to deploy workloads on ECS, you can migrate the workloads from Simple Application Server to ECS using a shared image.

Prerequisites

You have created a custom image. For more information, see Create a custom image.

Billing

If the shared image was created from an instance that uses an application image, you may be charged, depending on the billing method you choose when creating an ECS instance:

  • If you create a subscription ECS instance using the shared image, you are charged for the image.

  • If you create a pay-as-you-go ECS instance using the shared image, you are not charged for the image.

For more information, see Billable items.

Procedure

  1. Go to the Image page in the Simple Application Server console.

  2. Find the custom image that you want to share, and in the Actions column, click Share to ECS.

  3. In the dialog box, click OK.

    The share is complete when the following changes appear in the Actions column:

    Note

    The shared image is in the same region as the source custom image.

    • Share to ECS changes to Unshare the image to ECS.

    • The Create ECS Instance option appears, allowing you to quickly create an ECS instance.

Next steps

  • After sharing the custom image to ECS, you can create an ECS instance in either of the following ways:

    • (Recommended) In the ECS console, find the shared image, copy it, and then use the copy to create an ECS instance or replace the operating system of an existing instance. For instructions, see Copy an image shared from Simple Application Server in the ECS console.

      Important

      If the source Simple Application Server instance expires and is released, its associated snapshots and custom images are also deleted. As a result, the shared image is also removed from ECS. To prevent this data loss, we recommend copying the shared image to your ECS account. This creates a persistent copy that is independent of the original Simple Application Server.

    • On the Images page, find the shared image, and in the Actions column, click Create ECS Instance. For detailed instructions, see Create an instance by using a custom image or a shared image.