動作描述
在ECS執行個體中執行Packer模板
文法
Action: ACS::ECS::RunPacker
Properties:
regionId: String
instanceId: String
sourceType: String
sourcePath: String
tokenInfo: String
templateFile: String
mode: String屬性
屬性名稱 | 描述 | 類型 | 是否必填 | 預設值 | 約束 |
regionId | 地區ID | String | 否 | {{ ACS::RegionId }} | |
instanceId | ECS執行個體ID | String | 是 | ||
sourceType | 檔案儲存體方式 | String | 是 | ||
sourcePath | 您必須指定一個用於隱藏檔的URL | String | 是 | ||
tokenInfo | 指定一個token來下載檔案,只有從GitHub下載檔案時會用到 | String | 否 | ||
templateFile | 要執行的Packer模板檔案 | String | 是 | ||
mode | Packer模板執行的模式 | String | 否 | build |
傳回值
傳回值名稱 | 描述 | 類型 |
commandOutput | String |