This topic describes how to start multiple ECS instances in the ECS console by using the ACS-ECS-BulkyStartInstances public template of Operation Orchestration Service (OOS).


Before you create an O&M task on OOS, ensure that the following requirements are met:

  • OOS is activated.
  • A RAM role is created and the AliyunECSFullAccess policy is granted to the OOS service role.

    The OOSServiceRole-EcsDocGuideTest RAM role is created in this example.

  • A specified tag is bound to the target instance. For more information, see Create or bind a tag.

    The ECS: Documentation tag is created in this example.

Background information

OOS defines the O&M tasks that you want to perform in a template. Both YAML and JSON formats are supported for templates, which are divided into public and custom templates. Public templates are provided for your reference and can be used directly, such as the ACS-ECS-BulkyStartInstances public template in this topic. Before executing a template, you must check the O&M tasks defined in the template and set up a test environment to check the execution results of the template.

You can also customize a template to perform your O&M tasks.


  1. Log on to the OOS console.
  2. In the left-side navigation pane, click Public Templates.
  3. In the top navigation bar, select a region.
  4. On the Public Templates page, select ACS-ECS-BulkyStartInstances and click Create Execution.
  5. On the Create page, perform the following operations:
    1. In the Basic Information step, keep the default settings and click Next: Parameter Settings.
      Execution Mode: Automatic is selected in this example, indicating that all tasks in the template are to be executed automatically.
    2. Configure parameters in the Parameter Settings step.
      The following table describes some parameters. You can keep the default settings of the other parameters.
      Parameter Description Example
      targets The method to specify the instance. An error is returned if the instance is not in the Stopped state. You can specify the instance by using one of the following methods:
      • Select Instances Manually
      • Specify Instance Tags
      • Specify the resource group for instances
      Specify Instance Tags
      Select Instances If you select Select Instances Manually, you must select one or more instances that are in the Stopped state. i-bp1e9mxelweamh5g****
      Instance Tags If you select Specify Instance Tags, you must select one or more available tags. The tag keys are required. OOS calls the StartInstance operation to start multiple ECS instances at a time. ECS:Documentation
      Resource Group If you select Specify the resource group for instances, you must select a resource group. Test
      Permissions OOS allows you to use RAM to configure O&M permissions. You can use the permissions of your own account or use the permissions of the created oosAssumeRole RAM role to implement fine-grained control. Specify RAM Role and Use Permissions Granted to This Role
    3. Click Next: OK.
    4. In the OK step, preview and confirm the values defined in the Basic Information and Parameter Settings steps and then click Create.


You can view the execution results of O&M tasks on the Executions page after you create O&M tasks.

  • If Success is displayed in the Execution Status column corresponding to an O&M task, the O&M task is successful.
  • If Failed is displayed in the Execution Status column corresponding to an O&M task, you can click Details in the Actions column and then click Execution Logs. Then, you can analyze and adjust the execution content based on the log information.