Description
Runs a Cloud Assistant command on an Elastic Compute Service (ECS) instance in a scaling group.
Syntax
Action: ACS::ESS::RunCommand
Properties:
regionId: String
rollBack: String
commandContent: String
instanceId: String
lifecycleState: String
commandType: String
workingDir: String
timeout: Number
scalingGroupId: String
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
rollBack |
Specifies whether to roll back the command execution. |
String |
No |
false |
|
|
commandContent |
The content of the Cloud Assistant command. |
String |
Yes |
||
|
instanceId |
The ID of the ECS instance. |
String |
Yes |
Maximum length: 30 characters Minimum length: 1 character |
|
|
lifecycleState |
The lifecycle status of the ECS instance. |
String |
No |
InService |
|
|
commandType |
The type of the Cloud Assistant command. |
String |
Yes |
||
|
workingDir |
The working directory for running the Cloud Assistant command on the instance. |
String |
No |
||
|
timeout |
The timeout period for the Cloud Assistant command. |
Number |
No |
600 |
|
|
scalingGroupId |
The ID of the scaling group. |
String |
Yes |
Output
|
Output item |
Description |
Type |
|
invocationOutput |
String |
References
For more information, see ACS::ESS::RunCommand.yml on GitHub.