AWS Route53 - configure a simple health check

Recently I had some issue with my blog. I don’t know why but Docker container crashed. I didn’t know about that so my blog was offline for some time. I’ve decided that I have to configure health check. I use AWS Route53 and it gives me a simple option to set health check. Let’s do that.

Go to AWS Route53 and select Health checks from left menu.

Route53 - health check
Route53 - health check

Click Create health check button.

Now you can configure how you want to monitor your application. In my case I just want to know when it can’t be loaded so I choose an option to check domain using HTTPS.

Route53 - health check
Route53 - health check

You can also set some advanced configuration like request interval, string matching, etc. I don’t want to change that, it’s enough for my blog.

If configuration is ready, click Next.

On the next screen, we can set notification when the status of the health check changes to unhealthy. It’s a must have! Select Create alarm and use existing SNS topic or create a new one.

Route53 - health check
Route53 - health check

When you confirm operation it will redirect you to page with list of all health checks.

Route53 - health check
Route53 - health check

There is one more action to do. We have to confirm SNS subscription. AWS should send an email with a link, just click on it and the subscription should be confirmed.

Route53 - health check
Route53 - health check

After confirmation the list should display health check with green status.

To test a new health check, I took a big risk! I stopped the server!

After a short time, AWS shows Unhealthy status!

Route53 - health check
Route53 - health check

I’ve got also an email.

Route53 - health check email
Route53 - health check email

Great, that’s what I wanted!