You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Sharing image
Sharing or unsharing custom images
Copy page
Download PDF
Sharing or unsharing custom images
You can share custom images that you create with other accounts on the platform. This allows you to deploy ECS instances across accounts. You can unshare an image when you no longer want to share the image with other accounts.​
Usage notes​
​
​
​
Sharing account​
​
Number of platform accounts with which an image can be shared​
Each image can be shared with up to 50 platform accounts.​
Target region​
You can share an image with an account that resides in the same region as the image. Cross-region image sharing is not supported.​
Source image management​
  • Shared images that are shared with other platform accounts cannot be directly deleted. You must remove all sharing relationships of the image before deletion.​
  • Only custom images with the "Available" status can be shared.​
Receiving account​
​
Limits​
  • Both receiving accounts and their IAM users can use the shared images. However, the account using the image must have permission to perform the target actions. Examples:​
  • When IAM user A uses a shared image to create an instance, IAM user A must have the permission to create instances (RunInstances).​
  • When IAM user B uses a shared image to change the operating system, IAM user B must have the permission to change the operating system (ReplaceSystemVolume).​
  • You are not allowed to share images with other platform accounts if the images are shared with your account by other users.​
  • Shared images are user-owned private images. The platform cannot guarantee their security and integrity. Confirm that the images are shared by trusted accounts before you use the shared images.​
Billing rules​
If the source image is chargeable, when the receiving account uses the shared image, the account is also charged. The billing rules are the same as those of the source chargeable image.​
License types​
The license type of the shared image must be consistent with that of the source image.​
​
Share an image​
You can use the ECS console or the resource management console to share your custom images with other accounts.​
warning​
  • You can share custom images with other VolcanoEngine accounts in either the ECS console or the resource management console. Additionally, you can directly share resources with the entire enterprise organization, departments, and member accounts by using the resource management feature.​
  • Sharing custom images within an enterprise organization by using the Resource Sharing (RS) feature is currently in Beta. To request a trial, submit a ticket or contact your account manager.​
Share custom images in the image console​
  1. Log in to the Image console. ​
  1. Select the "Custom Image" tab.​
  1. In the top menu bar, select the region where the target image is located.​
  1. Click "Shared Image" in the "Actions" column of the custom image to be shared.​
  1. In the pop-up window, enter the ID of the receiving account and click "Share".​
tip​
  • Separate multiple account IDs with Enter keys. For information about how to view the account ID, see Account introduction.​
  • To share images within an organization, click the "sharing within the organization" button to go to the resource sharing console and perform sharing operations. Learn more.​
  1. After you share an image with other accounts, you can view the shared image in the custom image list. The shared image has the "Shared" tag. Click the name of the shared custom image to view the information of the receiving account on the "Shared object" tab of the details page.​
tip​
  • The shared image is a non-project resource. Even if the source image is a project resource, the shared image will not be added to the project.​
  • The receiving accounts and their IAM users with permission to perform operations on shared images can view the accessible shared images by clicking "Image > Shared Image". For more project details, see Project management.​
Share custom images in the resource sharing console​
  1. Log in to the resource sharing console.​
  1. In the directory tree on the left, select "Resource sharing > Shared by me".​
  1. In the top menu bar, select the region where the relevant resources are located.​
  1. Select the "Shared by me" tab, click the "Create shared unit" button, and configure the following information in sequence.​
  1. Configure basic information and associate resources​
  • ​
    Parameter​​
    Description​
    Unit name​
    Specify a name for the shared unit.​
    Resource select​
    Specify the resource type and select the resources to be shared.​
    • Region: The region where the resources to be shared are located. To change the region, select the new region in the top menu bar.​
    • Product: Select "ecs - image" and select the custom images to be shared.​
    ​
  1. Associate sharing permissions​
  • The system automatically associates the preset policy library based on the resource type. You can click to view the details of the shared policies.​
  1. Associate shared users​
  • ​
    Parameter​​
    Description​
    Resource user​
    Select the scope of resource users. Supported:​
    • Allow sharing with any account: The resource owner can share resources with any root user. If the resource owner belongs to an enterprise organization, resources can also be shared with the entire enterprise organization, its departments, and member accounts.​
    • Only allow sharing with enterprises and organizations: The resource owner must belong to an enterprise organization, and resources can only be shared with the organization itself, its subordinate Organizational Units (OUs), and member accounts. This option is unavailable to non-administrators of the enterprise organization.​
    ​
    Select the method for adding resource users. Supported:​
    • Add by business organization: Only the enterprise organization administrator can enable this option and select the entire organization, organizational units (OUs), or member accounts directly from the enterprise organization tree directory.​
    • Select the user type and specify the user ID to add a resource user: Select the intended user type first and then specify the root user ID, enterprise organization ID, or enterprise organization OUID to add a resource user.​
    Shared users added​
    View information about shared accounts that have already been added.​
    ​
  1. Confirm and submit the request​
  • After you confirm that the current configuration of shared resources, shared users, and other information is correct, click the "Confirm" button to create the shared unit.​
  • ​​​
  1. When the new shared unit is in the Enabled status, the shared unit is created as expected.​
  • ​​​
  1. After you share an image with other accounts, you can view the shared image in the custom image list. The shared image has the "Shared" tag.​
  1. Click the name of the shared custom image to view the information of the receiving account on the "Shared object" tab of the details page.​
  1. You can also click the "Resource Sharing Console" button to view and manage shared account information in the resource sharing console.​
tip​
  • The shared image is a non-project resource. Even if the source image is a project resource, the shared image will not be added to the project.​
  • The receiving accounts and their IAM users with permission to perform operations on shared images can view the accessible shared images by clicking "Image > Shared Image". For more project details, refer to Project management.​
Unshare images​
After you unshare an image, the instances that are created or reinstalled by the receiving accounts based on the image are not affected. However, the receiving accounts cannot query the shared image or use the image to create an instance or change the operating system.​
warning​
Image sharing cannot be canceled while the shared image is being copied by the receiving account. Learn more.​
Unshare images in the image console​
When your custom image is shared with other VolcanoEngine accounts in the image console, you can refer to this section to unshare the image.​
  1. Log in to the Image console. ​
  1. Select the "Custom Image" tab.​
  1. In the top menu bar, select the region where the target image is located.​
  1. Click the name of the shared custom image.​
  1. On the image details page, select the "Shared object" tab, and click "Cancel sharing" next to the ID of the receiving account.​
  1. In the pop-up window, click "OK" to confirm the unsharing.​
  1. After you unshare a custom image, go to the details page of the custom image and view that the information of the receiving account has been removed from the "Shared object" tab.​
Unshare images in the resource sharing console​
When your custom image is shared with other VolcanoEngine accounts in the resource sharing console, you can refer to this section to unshare the image.​
  1. Log in to the resource sharing console.​
  1. In the directory tree on the left, select "Resource sharing > Shared by me".​
  1. In the top menu bar, select the region where the relevant resources are located.​
  1. Select the "Shared by me" tab, and click the "View details" button in the "Actions" column to the right of the target shared unit.​
  1. Click the "Edit shared unit" button.​
  1. Select "ecs - image" in the product column.​
  1. Clear the image that you no longer want to share.​
  1. Click the "Next" button.​
  1. After you confirm the sharing permissions and shared user, click the "Confirm" button to complete the operation.​
Related documents​
Last updated: 2026.01.09 10:18:18