Amio.io
Amio.io

Reputation: 21585

How to set "Health Check Path"?

Update 12/21/2017 - 2 p.m.

It was really a bug. AWS corrected it. I still don't know what is the correct value though. I managed to set /health but the instance is always unhealthy since. Any advice?

Original 12/21/2017 - 8 a.m.

Today AWS Elastic Beanstalk web console got an update for Configuration in our region. In the old GUI, we were asked to set the health check url. So we input https://domain/health.

In the new GUI, AWS is asking for health check path. But no matter what value I try, I cannot save the config and I always receive the same result:

enter image description here

I tried these values:

I believe it is a bug, isn't? Have you been successful setting the health path?

Upvotes: 3

Views: 15645

Answers (2)

SMX
SMX

Reputation: 1442

From the forum post linked by Klemens, what worked for me was setting the health check url to /, saving+applying changes, then going back and putting my real health check URL back in.

Upvotes: 0

VivienG
VivienG

Reputation: 2180

You just need to create a raw html file with "OK" inside and redirect your health path to this html file. If you use Django, just do:

views.py

def health(request):
    return HttpResponse("OK")

urls.py

url(r'^health/', views.health, name='health'),

Upvotes: 2

Related Questions