Action
ACS::ECS::RunCommand
Description
Creates a command in the Cloud Assistant client and runs it on an Elastic Compute Service (ECS) instance.
Syntax
Action: ACS::ECS::RunCommand
Properties:
regionId: String
instanceId: String
commandType: String
commandContent: String
workingDir: String
timeout: Number
enableParameter: Boolean
parameters: Json
username: String
windowsPasswordName: StringAttributes
Attribute | Description | Type | Required | Default value | Limit |
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
instanceId | The ID of the ECS instance. | String | Yes | ||
commandType | The command type. | String | Yes | ||
commandContent | The command content. | String | Yes | ||
workingDir | The directory in which the command is run. | String | No | "" | |
timeout | The timeout period. | Number | No | 600 | |
enableParameter | Specifies whether the command contains encrypted parameters or custom parameters. | Boolean | No | False | |
parameters | The parameters in the command. | Json | No | {} | |
username | The username of the account that is used to run the command. | String | No | ||
windowsPasswordName | The password of the account that is used to run the command on the Windows instance. | String | No | "" |
Output
Output item | Description | Type |
invocationOutput | String |
References
For more information, see ACS::ECS::RunCommand at GitHub.