by XDK
1. October 2019 22:32
Explanation:
Following is the command to set the health status of the specified instance.
aws autoscaling set-instance-health --instance-id <ID> --health-status <Healthy/Unhealthy>
Example: To set the instance Unhealthy
aws autoscaling set-instance-health --instance-id i-123456789 --health-status Unhealthy