As usage of Lambda functions growing day by day, we now need to monitor the logs for any exceptions/errors.
Prerequisites:
SNS topic created with appropriate subscription – This is to receive alert notifications.
Below are the steps to configure the alerts and generate notification.
- Create Sample Lambda function with Exceptions and Errors
- Create the Metric filter on the log and create a Metric.
- Create an alert on the Metric that you have created.