CloudWatch is the logging and monitoring service for AWS, where logs from most services get stored and monitored. In this section, we will learn how CloudWatch trigger works, how CloudWatch querying works in practice, configuring this in the Lambda function, and also how to make use of this knowledge to build a Lambda function.
So, in this section, we will do the following:
- Create a CloudWatch log
- Briefly understand how a CloudWatch log works
- Create a Lambda function that gets triggered by the CloudWatch trigger
This will help you understand and build resilient and stable serverless architectures.
The process flow for this is as follows:
- To create a CloudWatch Logs group, click on the Logs option to the left of the CloudWatch console:
- Once you are on the AWS CloudWatch Logs page, you will see a list of log groups that are already present. The CloudWatch...