動作描述
通過下載OSS檔案與運行命令執行服務執行個體升級
文法
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屬性
屬性名稱 | 描述 | 類型 | 是否必填 | 預設值 | 約束 |
regionId | 地區 | String | 否 | {{ ACS::RegionId }} | |
serviceInstanceId | 計算巢服務執行個體ID | String | 是 | ||
resourceName | 運行命令的ECS執行個體資源名稱 | String | 否 | ||
applicationGroupName | 運行命令的ECS執行個體應用分組名稱 | String | 否 | ||
artifactsUrl | The URL of file artifacts | String | 否 | ||
artifactsDownloadDirectory | The artifacts download to directory | String | 否 | ||
commandType | 命令類型 | String | 否 | RunShellScript | |
commandContent | 命令內容 | String | 是 | 最大長度 : 16384 | |
workingDir | 運行目錄 | String | 否 | ||
timeout | 逾時時間 | Number | 否 | 600 | |
enableParameter | 命令中是否包含加密參數或自訂參數 | Boolean | 否 | False | |
parameters | 命令參數 | Json | 否 | {} |
傳回值
傳回值名稱 | 描述 | 類型 |
commandOutput | List |