ALIYUN::ECS::DeploymentSet is used to create a deployment set in a specified region.
Syntax
{
"Type": "ALIYUN::ECS::DeploymentSet",
"Properties": {
"DeploymentSetName": String,
"Description": String,
"OnUnableToRedeployFailedInstance": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
DeploymentSetName | String | No | Yes | The name of the deployment set. | The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https:// . The name can contain letters, digits, colons (:), underscores (_), and hyphens (-). |
Description | String | No | Yes | The description of the deployment set. | The description must be 2 to 256 characters in length. It must start with a letter and cannot start with http:// or https:// . |
OnUnableToRedeployFailedInstance | String | No | No | The emergency solution to redeploy failed instances in the deployment set. | Valid values:
|
Response parameters
Fn::GetAtt
DeploymentSetId: the ID of the deployment set.
Examples
JSON
format{ "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" ] } } } }