edit-icon download-icon

ALIYUN::ESS::ScalingGroup

Last Updated: Jun 13, 2018

The ALIYUN::ESS::ScalingGroup type can be used to create a scaling group.

Syntax

  1. {
  2. "Type" : "ALIYUN::ESS::ScalingGroup",
  3. "Properties" : {
  4. "VpcId" : String,
  5. "ScalingGroupName" : String,
  6. "RemovalPolicys" : List,
  7. "MinSize" : Integer,
  8. "MaxSize" : Integer,
  9. "VSwitchId" : String,
  10. "LoadBalancerIds" : List
  11. "DefaultCooldown" : Integer,
  12. "DBInstanceIds" : List
  13. }
  14. }

Attributes

Attribute name Type Required Update allowed Description Constraint
MinSize integer Yes No Minimum number of ECS instances in the scaling group Value range: [0, 100]
MaxSize integer Yes No Maximum number of ECS instances in the scaling group Value range: [0, 100]
VpcId string No No VPC ID N/A
ScalingGroupName string No No Displayed name of the scaling group The name is a string of 2 to 40 Chinese characters or English letters. It must start with a digit, an uppercase/lowercase letter, or a Chinese character, and can contain digits, English letters, Chinese characters, underscores(_), periods(.), and hyphens(-). The name must be unique. If this parameter is not specified, the default value is ScalingGroupId
RemovalPolicies list No No Policy for removing ECS instances from the scaling group Value options:

OldestInstance: removes the first ECS instance attached to the scaling group

NewestInstance: removes the latest ECS instance attached to the scaling group

OldestScalingConfiguration: removes the ECS instance with the oldest scaling configuration

Default value options: OldestScalingConfiguration and OldestInstance. You can specify up to two removal policies
VSwitchId string No No ID of the VSwitch in VPC N/A
LoadBalancerIds list No No ID of a Server Load Balancer instance N/A
DefaultCooldown integer No No Default cool-down time of the scaling group Value range: [0, 86400], in seconds. The default value is 300 seconds
DBInstanceIds list No No ID of an ApsaraDB for RDS instance N/A

Return values

Fn::GetAtt

ScalingGroupId: ID of the scaling group, which is generated by the system and is globally unique.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "ScalingGroup": {
  5. "Type": "ALIYUN::ESS::ScalingGroup",
  6. "Properties": {
  7. "MaxSize": 1,
  8. "MinSize": 1,
  9. # "ScalingGroupName": "HeatCreatedReal2",
  10. # "DefaultCooldown": 500,
  11. # "RemovalPolicy_1": "",
  12. # "RemovalPolicy_2": "",
  13. }
  14. }
  15. },
  16. "Outputs": {
  17. "ScalingGroup": {
  18. "Value" : {"Fn::GetAtt": ["ScalingGroup", "ScalingGroupId"]}
  19. }
  20. }
  21. }
Thank you! We've received your feedback.