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).
Prerequisites
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.
Procedure
Result
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.