ALIYUN::ECS::DeploymentSet類型用于在指定的地域內創建一個部署集。
語法
{
"Type": "ALIYUN::ECS::DeploymentSet",
"Properties": {
"DeploymentSetName": String,
"Description": String,
"OnUnableToRedeployFailedInstance": String,
"Strategy": String,
"GroupCount": Number
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
DeploymentSetName | String | 否 | 是 | 部署集名稱 | 長度為2~128個字符。必須以大小寫字母或中文開頭,不能以 |
Description | String | 否 | 是 | 部署集描述信息 | 長度為2~256個字符。必須以大小寫字母或中文開頭,不能以 |
OnUnableToRedeployFailedInstance | String | 否 | 否 | 部署集內實例宕機遷移后,缺乏可供打散的實例庫存的緊急處理方案。 | 取值:
|
Strategy | String | 否 | 否 | 部署策略。 | 取值:
|
GroupCount | Number | 否 | 否 | 為部署集組高可用策略設置分組數量。 | 取值范圍:1~7。 默認值:3。 說明 該參數僅當 重要 該字段類型為 Long,在序列化或反序列化的過程中可能導致精度丟失,請注意數值不得大于 9007199254740991。 |
返回值
Fn::GetAtt
DeploymentSetId: 部署集ID。
示例
ROSTemplateFormatVersion: '2015-09-01' Resources: DeploymentSet: Type: ALIYUN::ECS::DeploymentSet Properties: DeploymentSetName: TestDeploymentSet OnUnableToRedeployFailedInstance: CancelMembershipAndStart Outputs: DeploymentSetId: Description: The ID of the deployment set. Value: Fn::GetAtt: - DeploymentSet - DeploymentSetId
{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "DeploymentSet": { "Type": "ALIYUN::ECS::DeploymentSet", "Properties": { "DeploymentSetName": "TestDeploymentSet", "OnUnableToRedeployFailedInstance": "CancelMembershipAndStart" } } }, "Outputs": { "DeploymentSetId": { "Description": "The ID of the deployment set.", "Value": { "Fn::GetAtt": [ "DeploymentSet", "DeploymentSetId" ] } } } }
文檔內容是否對您有幫助?