All Products
Search
Document Center

Elastic Compute Service:Use OOS to create a custom image

Last Updated:Jun 04, 2025

CloudOps Orchestration Service (OOS) provides a public template named ACS-ECS-CreateAndCopyImage to create custom images. This template allows you to perform operations, such as sending remote commands, creating custom images, and copying images, with a few clicks. This topic describes how to use OOS to create a custom image.

Procedure

  1. Go to the Common O&M Tasks page of OOS.

    1. Go to ECS console - Images.

    2. In the top navigation bar, select the region and resource group of the resource that you want to manage. 地域

    3. Click Create Custom Image and select Use OOS to Create.

      oos创建

  2. On the Create Task Create or Update Images page, the Create Image from Existing Instance option is selected by default. Complete the task execution settings.

    1. In the General Settings section, enter an image name in the New Image Name section and select an option in the Permissions section.

      You can set Permissions to Use Existing Permissions of Current Account or Specify RAM Role and Use Permissions Granted to This Role. In this example, Specify RAM Role and Use Permissions Granted to This Role is selected and the OOSServiceRole permission is assumed by OOS.

      Note

      If your account does not have a Resource Access Management (RAM) role that OOS can assume, configure a RAM role for OOS and grant permissions to the role. If you already understand how to configure RAM permissions for OOS, click Grant RAM permissions to OOS to grant the required RAM permissions.

    2. In the Select Instances section, select the Elastic Compute Service (ECS) instance from which you want to create a custom image.

      When a custom image is created, the system automatically generates snapshots for the disks. You are charged for the snapshots.

    3. In the Send Remote Commands section, select a command type that is suitable for the instance and enter the command content.

      The remote commands that you enter are sent to the selected instance before OOS creates the custom image. You can enter remote commands to perform specific operations on the instance, such as installing software or recording the execution time of O&M tasks.

    4. In the Image Distribution section, configure the related parameters.

      Parameter

      Description

      Copy to Other Region

      Select one or more regions. After a custom image is created in the current region, the image is automatically copied to the selected regions.

      Shared Account ID

      Specify the IDs of one or more Alibaba Cloud accounts. After a custom image is created, the image is automatically shared to the specified accounts.

    5. In the Scaling Group Configuration section, select a scaling configuration ID.

      After the image is created, the image parameter in the specified scaling configuration is automatically updated with this image.

    6. In the Execution Settings(Optional) section, add tags and a resource group as prompted.

    7. Click Create. In the Parameter Confirmation dialog box, confirm the parameters and click OK.

      When the task status changes to Success, the custom image is created and operations such as image copying are completed. You can view the created image in the custom image list.

      Note

      When Execution Status is Running, you can click the Output or Log tab to view output parameters or logs.

References

After a custom image is created, you can use the custom image to perform the following operations: