ALIYUN::ESS::LoadBalancerAttachment is used to add one or more Server Load Balancer (SLB) instances.
Syntax
{
"Type": "ALIYUN::ESS::LoadBalancerAttachment",
"Properties": {
"ScalingGroupId": String,
"ForceAttach": Boolean,
"LoadBalancers": List,
"LoadBalancerConfigs": 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 attach all the instances in the current scaling group to the SLB instance as backend servers. | Valid values:
|
LoadBalancers | List | No | No | The IDs of the Classic Load Balancer (CLB, formerly known as SLB) instances that you want to associate with your scaling group. | You can associate up to five SLB instances with a scaling group. |
LoadBalancerConfigs | List | No | No | The CLB configurations. | For more information, see LoadBalancerConfigs properties. |
LoadBalancerConfigs syntax
"LoadBalancerConfigs": [
{
"LoadBalancerId": String,
"Weight": Integer
}
]
LoadBalancerConfigs properties
Property | Type | Required | Editable | Description | Constraint |
LoadBalancerId | String | No | No | The IDs of the CLB instances. | None. |
Weight | Integer | No | No | The weight of an Elastic Compute Service (ECS) instance as a backend server of the associated CLB instance. | 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
None.