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

PropertyTypeRequiredEditableDescriptionConstraint
DeploymentSetNameStringNoYesThe 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 (-).
DescriptionStringNoYesThe 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://.
OnUnableToRedeployFailedInstanceStringNoNoThe emergency solution to redeploy failed instances in the deployment set.Valid values:
  • CancelMembershipAndStart: restarts the instances immediately after they are shut down and migrated to other deployment sets. This is the default value.
  • KeepStopped: keeps the instances shut down and restarts them after the deployment set is replenished.

Response parameters

Fn::GetAtt

DeploymentSetId: the ID of the deployment set.

Examples

  • YAMLformat

    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
  • JSONformat

    {
      "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"
            ]
          }
        }
      }
    }