This topic describes how to share or unshare custom images. Shared images can be used to deploy Elastic Compute Service (ECS) instances across accounts. You can share your custom images to other Alibaba Cloud accounts. These Alibaba Cloud accounts can then use the shared images to create their own instances. You can also unshare shared custom images from other Alibaba Cloud accounts.
Prerequisites
Background information
Images shared to an account do not count against the image quota for the account. The account is not charged for images shared to it.
When an account creates their own instances by using an image that you shared, you do not incur charges. Only the account that used the image to create instances is charged. For more information about the billing of shared images, see the "Image prices" section in Image Overview.
The account can use the shared images but cannot delete the shared images. You must unshare a shared image before you can delete it. For more information, see Delete a custom image.
- You can share only the custom images that are created within your account. You cannot share custom images that are created and shared by other accounts.
- Each custom image can be shared to up to 50 accounts.
- You can share images between the accounts on the China (aliyun.com), International (alibabacloud.com), and Japan (jp.alibabacloud.com) sites. However, the custom images that are created based on Alibaba Cloud Marketplace images cannot be shared.
- Custom images cannot be shared across regions. If you want to share a custom image across regions, you must copy the image to the destination region first. For more information, see Copy a custom image.
- ECS does not guarantee the integrity and security of shared images. Before you use shared images, make sure that the images come from trusted accounts. You must assume all risks.
- If you want to share an encrypted custom image, you must use Resource Access Management
(RAM) to obtain permissions. For more information, see Share encrypted custom images.
Note If encryption is enabled for a disk attached to an ECS instance, the custom image created from the ECS instance is an encrypted custom image. For more information about the encryption feature, see Encryption overview.
Share a custom image
You can perform the following operations to share your custom image to an Alibaba Cloud account.
Unshare a custom image
- The account is no longer able to query the image by using the ECS console or by calling an API operation.
- The account is no longer able to create ECS instances or replace system disks by using the image.
- The system disks of ECS instances that were created from the shared image cannot be re-initialized.