Amazon CloudWatch Logs Subscription to AWS Lambda

Amazon CloudWatch Logs → AWS Lambda

Create a CloudWatch Logs subscription to a Lambda function

This sample project demonstrates how to create a log subscription in Cloudwath Logs, Lambda as a log receiver.
Using filter rules, we can control the logs that sends to Lambda function.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/cloudwatch-logs-subscription-lambda-cdk

Deploy

cdk deploy --all


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy --all.

Created by:

Pubudu Jayawardana

Pubudu Jayawardana

AWS Community Builder in Serverless category. Serverless advocate and enthusiast.

Follow on LinkedIn