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: StringAttributes
Attribute | Description | Type | Required | Default value | Limit |
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
rollBack | Specifies whether to perform the rollback. | 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 directory in which the Cloud Assistant command is run on the instance. | String | No | ||
timeout | The timeout period for running 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 at GitHub.