Description
Downloads files from Object Storage Service (OSS) and runs commands to upgrade a service instance.
Syntax
Action: ACS::CN::UpgradeServiceInstanceByRunCommand
Properties:
regionId: String
serviceInstanceId: String
resourceName: String
applicationGroupName: String
artifactsUrl: String
artifactsDownloadDirectory: String
commandType: String
commandContent: String
workingDir: String
timeout: Number
enableParameter: Boolean
parameters: Json
OOSAssumeRole: StringAttributes
Attribute | Description | Type | Required | Default value | Limit |
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
serviceInstanceId | The ID of the Compute Nest service instance. | String | Yes | ||
resourceName | The resource name of the Elastic Compute Service (ECS) instance on which the commands are run. | String | No | ||
applicationGroupName | The application group name of the ECS instance on which the commands are run. | String | No | ||
artifactsUrl | The source URL of files. | String | No | ||
artifactsDownloadDirectory | The directory to which files are downloaded. | String | No | ||
commandType | The command type. | String | No | RunShellScript | |
commandContent | The command content. | String | Yes | The command can be up to 16,384 bytes in length. | |
workingDir | The directory in which the commands are run. | String | No | ||
timeout | The timeout period. | Number | No | 600 | |
enableParameter | Specifies whether the commands contain encryption parameters or custom parameters. | Boolean | No | False | |
parameters | The command parameters. | Json | No | {} |
Output
Output item | Description | Type |
commandOutput | List |
References
For more information, see ACS::CN::UpgradeServiceInstanceByRunCommand at GitHub.