ALIYUN::ESS::ServerGroupAttachment is used to add one or more Server Load Balancer (SLB) server groups to a scaling group. Supported SLB server groups include Application Load Balancer (ALB) server groups and Network Load Balancer (NLB) server groups.
Syntax
{
"Type": "ALIYUN::ESS::ServerGroupAttachment",
"Properties": {
"ServerGroups": List,
"ScalingGroupId": String,
"ForceAttach": Boolean
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ServerGroups | List | Yes | No | The server groups. | You can add up to 100 server groups to a scaling group. For more information, see ServerGroups properties. |
ScalingGroupId | String | Yes | No | The ID of the scaling group. | None. |
ForceAttach | Boolean | No | No | Specifies whether to add all the Elastic Compute Service (ECS) instances in the current scaling group to the newly added server group. | Valid values:
|
ServerGroups syntax
"ServerGroups": [
{
"Type": String,
"Port": Integer,
"ServerGroupId": String,
"Weight": Integer
}
]
ServerGroups properties
Property | Type | Required | Editable | Description | Constraint |
Type | String | Yes | No | The type of server group. | Valid values:
|
Port | Integer | Yes | No | The port number that is used by an ECS instance after it is added to the server group. | Valid values: 0 to 65535. |
ServerGroupId | String | Yes | No | The ID of the server group. | None. |
Weight | Integer | Yes | No | The weight of an ECS instance as a backend server of the associated server group. | A higher weight specifies that a larger number of requests are forwarded to the ECS instance. If you set Weight to 0 for an ECS instance, no access requests are forwarded to the ECS instance. Valid values: 0 to 100. |
Return values
Fn::GetAtt
ScalingActivityId: the ID of the scaling activity during which you add the server group and also add the ECS instances in your scaling group to the server group.
This parameter is returned only when you set the ForceAttach property to true.