CmdID / aws / aws lightsail
aws lightsail attach-instances-to-load-balancer
Attaches one or more Lightsail instances to a load balancer. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--instance-namesAn array of strings representing the instance name(s) you want to attach to your load balancer.--load-balancer-nameThe name of the load balancer.