All Products
Search
Document Center

Resource Management:Bulk start tagged ECS instances with OOS

Last Updated:Sep 08, 2026

Quickly identifying resources for bulk management is a key challenge in automated operations. You can solve this by combining resource tags with Operation Orchestration Service (OOS).

Step 1: Create and bind a tag to ECS instances

Create and bind the tag business:bigdata to your ECS instances in either the ECS console or the Tag console. This example uses the Tag console:

  1. Log on to the Tag console.

  2. In the navigation pane on the left, choose Tag > Tag, and then click Create Tag.

  3. In the Create Tag dialog box, enter a tag key (for example, business) and a tag value (for example, bigdata), and then click Create.

  4. In the tag list, find the target tag and click Add to Resources in the Actions column to bind it to existing ECS instances.

    For more information, see Create tags and Bind tags to resources.

Step 2: Bulk start tagged ECS instances in OOS

In the OOS console, run the public template ACS-ECS-BulkyStartInstances and target the ECS instances with the business:bigdata tag.

  1. Log on to the OOS console.

  2. In the navigation pane on the left, choose Automated Task > Public Template.

  3. In the top-left corner of the page, select a region.

    Note

    By default, OOS manages resources in the same region where it runs. For example, OOS in the China (Hangzhou) region manages ECS instances in China (Hangzhou). However, you can specify a different RegionId value in the ExecuteAPI task of a template to call APIs in other regions, although this is not recommended. Therefore, ensure the selected region matches the one where you tagged the ECS instances in Step 1: Create and bind a tag to ECS instances. For more information about OOS limitations, see Limitations.

  4. On the Public Template page, find ACS-ECS-BulkyStartInstances and click Create Execution.

  5. On the Create page, perform the following steps:

    1. In the Basic Information section, keep the default settings and click Next: Set Parameters.

      In Automatic mode, all tasks in the template run automatically in sequence.

    2. Set Target Instance to By Instance Tags. Select the tag key business and the tag value bigdata. Set RAM role for OOS to Use Existing Permissions of Current Account. Keep the default settings for the other parameters.

    3. Click Next: Confirm.

    4. Confirm the information, and then click Create.

  6. In the Execution Result area, click the Start Instance task node.

  7. On the Loop task list tab, view the execution result.

    All ECS instances with the specified tag business:bigdata have been started.