Skip directly to the demo: 0:30
For more details see the Knowledge Center article with this video: https://aws.amazon.com/premiumsupport/knowledge-center/elastic-beanstalk-instance-automation/
Charles shows you how to automate the replacement of unhealthy EC2 instances in an Elastic Beanstalk environment.
Publisher: Amazon Web Services
You can watch this video also at the source.