loadbalancerIds

val loadbalancerIds: Output<List<String>>?

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.

  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).

  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.

  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.