This topic shows you how to create and validate a custom template in the CloudOps Orchestration Service console. You will start with an empty template and configure it to run commands on a specific ECS instance.
Procedure
-
Log on to the CloudOps Orchestration Service console. In the navigation pane on the left, choose .
-
On the Custom Template page, click Create Template. Select Empty Templates, and then click Next Step.
-
In the template editor, click Add New Task. From the task type drop-down list, select Command Execution, and then configure the following parameters. Under task inputs, click Select Instances to choose the instance where you want to run the command.
NoteBy default, templates are created by using the visual editor. To configure the template by using YAML or JSON, you must be familiar with the template syntax. For more information, see template syntax.
-
ECSInstanceId: Select the ECS instance on which you want to run the command.

-
CommandType: Select the script type.
-
CommandContent: Enter the command to run on the selected instance.
-
-
After you configure the template, click Create Template. Enter a custom name in the dialog box and click OK.
Verify the template
-
Log on to the CloudOps Orchestration Service console. In the navigation pane on the left, choose .
-
Find the template that you created. In the Actions column, click Create an execution..

-
On the Create Task page, click Next Step: Parameter Settings, click Next Step: OK, and then click OK.
