Description
Runs commands on an Elastic Compute Service (ECS) instance or restarts an ECS instance across regions.
Syntax
Action: ACS::ECS::RunImageTemplateCommand
Properties:
regionId: String
instanceId: String
parameters: JsonAttributes
Attribute | Description | Type | Required | Default value | Limit |
regionId | The region ID. | String | Yes | ||
instanceId | The ID of the ECS instance. | String | Yes | ||
parameters | The parameters of the template. Example: {"type": "RESTART"} or {" commandType": "RunShellScript", "commandContent": "pwd", "workingDir": "/root", "type": "RunCommand", "timeout": 600}. | Json | Yes |
Output
Output item | Description | Type |
commandOutput | String |
References
For more information, see ACS::ECS::RunImageTemplateCommand at GitHub.