In my previous post, I explained how we can monitor application errors using AWS CloudWatch logs, metric filters, alarms, and AWS Chatbot Slack client. In that example, I manually created all the resources using AWS Management Console.
In this post, I want to show you the implementation of the same infrastructure using AWS CDK. AWS CDK is a great tool for defining infrastructure as code (IaC). With AWS CDK we can reduce most of our manual tasks.
Refer to the original article that I published on https://duleendra.medium.com