I’m looking for some advice on managing a single EC2 instance in AWS using Auto Scaling. My main goal is to have a setup where this instance automatically gets replaced if it fails. The instance acts as a web worker, processing tasks, but I’m not using a load balancer.
I understand that AWS Auto Scaling groups can handle instance failures by replacing unhealthy instances. However, I want to integrate a custom health check that hits a specific endpoint on my server to determine its health. Unfortunately, it seems that AWS Auto Scaling doesn’t directly support calling custom HTTP endpoints for health checks.
Does anyone have experience or suggestions on how I might implement this? Ideally, I’m looking for a way to have AWS check my specific health endpoint and replace the instance if the check fails. Any advice or insights would be greatly appreciated!
Thanks in advance!