When auto scale-in web server using AWS, I\'ll use a metric named "ActiveTasksCount" and check if the metric value is 0 and current EC2 instance state is DRAINING.