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

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "DeploymentSet": {
      "Type": "ALIYUN::ECS::DeploymentSet",
      "Properties": {
        "DeploymentSetName": {
          "Ref": "DeploymentSetName"
        },
        "Description": {
          "Ref": "Description"
        },
        "OnUnableToRedeployFailedInstance": {
          "Ref": "OnUnableToRedeployFailedInstance"
        }
      }
    }
  },
  "Parameters": {
    "DeploymentSetName": {
      "Type": "String",
      "Description": "The name of the deployment set. It must be 2 to 128 characters in length. It must\nstart with a letter and cannot start with http:// or https://. It can contain letters,\ndigits, colons (:), underscores (_), and hyphens (-)."
    },
    "Description": {
      "Type": "String",
      "Description": "The description of the deployment set. It must be 2 to 256 characters in length. It\ncannot start with http:// or https://."
    },
    "OnUnableToRedeployFailedInstance": {
      "Type": "String",
      "Description": "The emergency solution to redeploy failed instances in the deployment set. Valid values:\nCancelMembershipAndStart: restarts the instances immediately after they are shut down\nand migrated to other deployment sets. This is the default value.\nKeepStopped: keeps the instances shut down and restarts them after the deployment\nset is replenished.",
      "AllowedValues": [
        "CancelMembershipAndStart",
        "KeepStopped"
      ]
    }
  },
  "Outputs": {
    "DeploymentSetId": {
      "Description": "The ID of the deployment set.",
      "Value": {
        "Fn::GetAtt": [
          "DeploymentSet",
          "DeploymentSetId"
        ]
      }
    }
  }
}