All Products
Search
Document Center

Elastic Compute Service:Use OOS to create a custom image

Last Updated:Feb 08, 2024

CloudOps Orchestration Service (OOS) provides a public template named ACS-ECS-CreateAndCopyImage to help you perform a set of operations. For example, you can use this template to send remote commands and create and copy custom images.

Background information

You can view information, such as the default process of executing this public template, in the OOS console. For more information, see View the information of a public template.

Procedure

  1. Go to the page for configuring a custom image creation task in the OOS console.

    1. Log on to the ECS console.

    2. In the left-side navigation pane, choose Instances & Images > Images.

    3. In the upper-left corner of the top navigation bar, select a region.

    4. In the Create Custom Image section, click Use OOS to Create.

  2. On the Create Task Create or Update Images page, configure parameters.

    1. Keep Create Image from Existing Instance selected.

    2. Complete the settings in the General Settings section.

      Enter a name for the custom image and configure the Permissions parameter.

    3. Select an instance.

      OOS creates a custom image from the selected instance. When OOS creates a custom image, OOS creates snapshots for the disks that are attached to the instance. You are charged for the snapshots contained in the created custom image.

    4. Optional: Enter a remote command.

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

    5. Optional: Complete settings in the Image Distribution section.

      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 regions that you select.

      Shared Account ID

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

    6. Optional: Configure the Scaling Group Configuration ID parameter in the Scaling Group Configuration section.

      After a custom image is created, it is automatically used to update image parameters in the scaling configuration of the specified scaling group.

    7. Optional: Complete the settings in the Execution Settings section.

      Parameter

      Description

      Description

      Enter a description for the custom image.

      Tags for Execution

      Add tags to the task to help you identify the task.

      Executed Resource Group

      Optional. Select a resource group to manage the custom image based on usage and permissions.

      Save as Template

      Turn on this switch to save the settings of this task as a custom template for future reuse.

    8. Click Create.

Result

On the task details page, when the value of Execution Status changes to Running, you can click the Output and Log tabs to view the output parameters and the execution logs of the task. When the value of Execution Status changes to Success, the custom image is created and operations, such as copying the image to other regions, are performed as configured in the task.

What to do next

After the custom image is created, you can go back to the Elastic Compute Service (ECS) console and view the custom image on the Images page.