ALIYUN::ESS::VServerGroupAttachment is used to associate vServer groups of a Sever Load Balancer (SLB) instance with a scaling group.
Syntax
{
"Type": "ALIYUN::ESS::VServerGroupAttachment",
"Properties": {
"ScalingGroupId": String,
"ForceAttach": Boolean,
"VServerGroups": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ScalingGroupId | String | Yes | No | The ID of the scaling group. | None. |
ForceAttach | Boolean | No | No | Specifies whether to add Elastic Compute Service (ECS) instances in the scaling group to the vServer group. | Valid values:
|
VServerGroups | List | Yes | Yes | The information about the vServer groups. | For more information, see VServerGroups properties. |
VServerGroups syntax
"VServerGroups": [
{
"LoadBalancerId": String,
"VServerGroupAttributes": List
}
]
VServerGroups properties
Property | Type | Required | Editable | Description | Constraint |
LoadBalancerId | String | Yes | No | The ID of the SLB instance to which the vServer group belongs. | None. |
VServerGroupAttributes | List | Yes | No | The attributes of the vServer group. | For more information, see VServerGroupAttributes properties. |
VServerGroupAttributes syntax
"VServerGroupAttributes": [
{
"VServerGroupId": String,
"Port": Integer,
"Weight": Integer
}
]
VServerGroupAttributes properties
Property | Type | Required | Editable | Description | Constraint |
VServerGroupId | String | Yes | No | The ID of the vServer group. | None. |
Port | Integer | Yes | No | The port number that is used by Auto Scaling to add ECS instances to the vServer group. | Valid values: 1 to 65535. |
Weight | Integer | No | No | The weight of the ECS instances that are added to the vServer group by Auto Scaling. | Valid values: 0 to 100. Default value: 50. |
Return values
Fn::GetAtt
ScalingGroupId: the ID of the scaling group.