動作描述
下載檔案到執行個體並執行命令
文法
Action: ACS::ESS::DownloadFileAndRunCommand
Properties:
regionId: String
instanceId: String
sourceType: String
sourcePath: String
tokenInfo: String
destinationDir: String
whetherSaveToFile: Boolean
commandContent: String
workingDir: String
timeout: Number屬性
屬性名稱 | 描述 | 類型 | 是否必填 | 預設值 | 約束 |
regionId | 地區ID | String | 否 | {{ ACS::RegionId }} | |
instanceId | ECS執行個體ID | String | 是 | ||
sourceType | 檔案類型 | String | 是 | ||
sourcePath | 選擇檔案 | String | 是 | ||
tokenInfo | GitHubToken | String | 否 | ||
destinationDir | 檔案儲存路徑 | String | 是 | ||
whetherSaveToFile | 是否將內容下載到特定檔案 | Boolean | 否 | True | |
commandContent | 命令內容 | String | 是 | 最大長度 : 16384 | |
workingDir | 運行目錄 | String | 否 | ||
timeout | 逾時時間 | Number | 否 | 600 |
傳回值
傳回值名稱 | 描述 | 類型 |
downloadFileCommandOutput | String | |
runCommandOutput | String |