Attaches one or more Lightsail instances to a load balancer.
lightsail_attach_instances_to_load_balancer(loadBalancerName,
instanceNames)
[required] The name of the load balancer.
[required] An array of strings representing the instance name(s) you want to attach to your load balancer.
An instance must be running
before you can attach it to your load
balancer.
There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
svc$attach_instances_to_load_balancer( loadBalancerName = "string", instanceNames = list( "string" ) )
After some time, the instances are attached to the load balancer and the health check status is available.
The attach instances to load balancer
operation supports tag-based
access control via resource tags applied to the resource identified by
loadBalancerName. For more information, see the Lightsail Dev Guide.