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: String
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
serviceInstanceId |
Compute Nest service instance ID. |
String |
Yes |
||
|
resourceName |
Resource name of the ECS instance that runs the commands. |
String |
No |
||
|
applicationGroupName |
Application group name of the ECS instance that runs the commands. |
String |
No |
||
|
artifactsUrl |
Source URL of files. |
String |
No |
||
|
artifactsDownloadDirectory |
File download directory. |
String |
No |
||
|
commandType |
Command type. |
String |
No |
RunShellScript |
|
|
commandContent |
Command content. |
String |
Yes |
Maximum length: 16,384 bytes. |
|
|
workingDir |
Working directory for command execution. |
String |
No |
||
|
timeout |
The timeout period. |
Number |
No |
600 |
|
|
enableParameter |
Whether commands contain encryption or custom parameters. |
Boolean |
No |
False |
|
|
parameters |
Command parameters. |
Json |
No |
{} |
Output
|
Output item |
Description |
Type |
|
commandOutput |
List |
References
Source YAML template on GitHub: ACS::CN::UpgradeServiceInstanceByRunCommand.