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
Log on to the CloudOps Orchestration Service console. In the left-side navigation pane, choose .
On the Custom Template page, click Create Template. On the Create Template page, select Empty Templates, and click Next Step to create a template.
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.
NoteBy 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.
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.
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
Log on to the CloudOps Orchestration Service console. In the left-side navigation pane, choose .
Find the template that you created and click Create Execution in the Actions column.
On the page that appears, click Next Step: Parameter Settings, click Next Step: OK, and then click Create.