1 Answer
- Newest
- Most votes
- Most comments
1
You can change the health check type for your ASG from EC2 to ELB, which will then use the health status from the load balancer rather than checking the instance directly.
Amazon EC2 status checks and scheduled events is the default health check type for an Auto Scaling group.
Key source:
Relevant content
- asked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
Inside my instance I have validated with aws autoscaling describe-auto-scaling-instances --instance-ids and my ec2 is in HealthStatus": "HEALTHY, but in the TargetGroup it still says unhealthy on port 80. I have changed the time of the first healthcheck in the ASG to 15 minutes and I still can't resolve it.
Any log that can be searched? I have no log in Cloudwatch for this event.
You must ensure that the security groups for your instances allow the load balancer to communicate with your instances on both the listener port and the health check port.