ASG EC2 HealthCheck

0

When my ASG creates a new instance, in the Target group it registers a target on port 80 that is unhealthy , I see that this corresponds to the EC2 HealthCheck that brings by default the ASG. How can I disable this? Since my SG has the port 80 open external and internal, my new instance is correct but the healthCheck is wrong and I have to delete it manually.

Error

1回答
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:

profile picture
エキスパート
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
  • 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.

  • Apologies for the delayed response. I wasn't notified by AWS re:post when someone commented on my answer. I found this out by checking which answers hadn't been addressed.


    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.

    ℹ️ This resource serves as a valuable tool for verifying Target security groups.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ