CmdID / aws / aws lightsail
aws lightsail detach-instances-from-load-balancer
Detaches the specified instances from a Lightsail load balancer. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--instance-namesAn array of strings containing the names of the instances you want to detach from the load balancer.--load-balancer-nameThe name of the Lightsail load balancer.