Elastic Compute Service
Parameter | Description | Sample value |
Name | Specify the name of the custom template. tip The template name must be unique within the current account or project. It cannot be the same as the name of the public template, nor can it be the same as the name of any other custom template. | Cloud assistant Agent batch installation template |
JSON schema | Define the "Cloud assistant Agent batch installation template" file (orchestration process) in JSON format. For example: { "Parameters": { "targets": { "Type": "Map" }, "NeedReboot": { "Type": "Boolean" }, "ForceStop": { "Type": "Boolean" } }, "Tasks": [ { "Name": "getInstances", "Action": "VOS::SelectTargetInstances", "Parameters": { "Filters": "{{ .targets }}" }, "Outputs": { "instanceIds": { "Type": "List", "Value": "{{ [.Instances[].InstanceId] }}" } } }, { "Name": "InstallCloudAssistant", "Action": "VOS::ECS::InstallCloudAssistant", "Parameters": { "InstanceId": "{{ VOS::LoopItem }}", "NeedReboot": "{{ .NeedReboot }}", "ForceStop": "{{ .ForceStop }}" }, "Outputs": { "InstallResult": { "Type": "Boolean", "Value": "{{ .InstallResult }}" } }, "Loop": { "LoopItem": "{{ .\"getInstances.instanceIds\" }}", "Outputs": { "LoopInstanceStatus": { "SelectedOutputFiled": "InstallResult" } } } } ], "Outputs": { "InstanceStatus": { "Type": "List", "Value": "{{ .\"InstallCloudAssistant.LoopInstanceStatus\" }}" } } } | - |
Project | Specify the project to which the custom template belongs. tip The project displayed in the configuration item is the one you select in step 3. To change projects, follow the instructions in step 3. | Default configuration |
Parameter | Description | Sample value |
Basic information | | |
Name | Specify the name of the orchestration plan. | Cloud assistant Agent batch installation O&M plan |
Role | Select a role with read and write permissions on your ECS resources. The default role is "CustomRoleForOOS," which integrates all permissions supported by Orchestration by default. This prevents permission issues during usage. | Default configuration |
Execution mode | | |
Execution mode | Select a mode of executing the orchestration plan task. In this practice, "Execute immediately" is selected. Execute immediately: After the orchestration plan task is created, execute it immediately. | Execute immediately |
Task steps | | |
Step creation type | Select a mode of executing the task steps of the orchestration plan. In this practice, "Select an existing template" is selected. | Select an existing template |
Select template | | |
- | Select the orchestration plan template for task execution. Click the dropdown list for template selection and select the template "Cloud assistant Agent batch installation template" you have created in step 1. | Cloud assistant Agent batch installation template |
Parameter configuration warning The parameters vary depending on the selected template. The parameters displayed in the console prevail. The following only describes parameters related to this practice. | | |
targets (Map) | Enter the value of {key} in JSON format as follows: { "Type": "Tags", "Tags": [ { "Key": "purpose", "Value": "Agent" } ] } tip
| - |
NeedReboot (Boolean) | Select whether to restart the corresponding instances after cloud assistant Agent installation is complete.
tip If you have not enabled the automatic instance restart feature, manually restart the corresponding instances after installing cloud assistant Agent to ensure the installation succeeds. | Enable |
ForceStop (Boolean) | Select whether to forcibly terminate related processes, dependent services, and other running entities during O&M operations.
| Default configuration |