[note to my self] AWS Route53 Health Check Monitoring
Configuring AWS Route53 Health Check Monitoring with CloudWatch and SNS.
What AWS resources are we using?
What is the problem we are trying to solve?
We want to be notified when a Route53 Health Check fails. If an endpoint is not available or is not responding, we want to know about it. We can use CloudWatch to monitor the health check and send an SNS notification when the health check fails.
How do we solve the problem?
We will use Terraform to create the resources we need. We will create a Route53 Health Check, a CloudWatch Alarm, an SNS Topic, and an SNS Subscription. We will use the Route53 Health Check to monitor the health of the endpoint. We will use the CloudWatch Alarm to monitor the Route53 Health Check. We will use the SNS Topic to send the notification. We will use the SNS Subscription to subscribe to the SNS Topic.
Things to note
- The CloudWatch Alarm will send a notification to the SNS Topic when the Route53 Health Check fails.
- The SNS Subscription will subscribe to the SNS Topic and send the notification to the email address specified in the SNS Subscription.
- The SNS Subscription will only send the notification if the SNS Topic sends a notification with the subject “ALARM: “.
- The SNS subscription will only send notifications if the email recepient is subscribed to the SNS Topic.
What is the Terraform code?
Cloudwatch alarm for the health check
|
|
Route53 health check
|
|
SNS topic
|
|
SNS subscription
|
|
References
- AWS
- Terraform
This was made possible as I was listening to the following playlist