Runs commands on an ECS instance or restarts an instance across regions.
Description
Runs commands on an ECS instance or restarts an instance across regions.
Syntax
Action: ACS::ECS::RunImageTemplateCommand
Properties:
regionId: String
instanceId: String
parameters: Json
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
Region ID. |
String |
Yes |
||
|
instanceId |
ECS instance ID. |
String |
Yes |
||
|
parameters |
Template parameters. Example: {"type": "RESTART"} or {" commandType": "RunShellScript", "commandContent": "pwd", "workingDir": "/root", "type": "RunCommand", "timeout": 600}. |
Json |
Yes |
Output
|
Output item |
Description |
Type |
|
commandOutput |
String |
References
Source template on GitHub: ACS::ECS::RunImageTemplateCommand.