All Products
Search
Document Center

CloudOps Orchestration Service:Create a blank template

Last Updated:Mar 28, 2025

This topic describes how to use an empty template in the CloudOps Orchestration Service console to create a custom template that can be used to run commands on a specific ECS instance. This topic also describes how to verify a custom template.

Procedure

  1. Log on to the CloudOps Orchestration Service console. In the left-side navigation pane, choose Automated Task > Custom Template.

  2. On the Custom Template page, click Create Template. On the Create Template page, select Empty Templates, and click Next Step to create a template.

  3. In the template editor, click Add New Task. In the New Task section, select ACS::ECS::RunCommand from the Task Type drop-down list and configure the following parameters. In the Task Input section, click Select Instances and select an instance on which the command is to be run.

    Note

    By default, a template is created in the process configuration editor. If you want to create a template in the YAML or JSON editor, you must understand the related template syntax. For more information, see Template syntax.

    • ECSInstanceId: Select the ECS instance on which you want to run the command.

      image

    • CommandType: Select the type of the command that you want to run.

    • CommandContent: Enter the command that you want to run on the selected instance.

  4. After you configure the template, click Create Template. In the dialog box that appears, enter a custom name and click OK to save the template.

Verify the template

  1. Log on to the CloudOps Orchestration Service console. In the left-side navigation pane, choose Automated Task > Custom Template.

  2. Find the template that you created and click Create Execution in the Actions column.image

  3. On the page that appears, click Next Step: Parameter Settings, click Next Step: OK, and then click Create.image