Amazon CloudWatch Logs Subscription to AWS Lambda with AWS SAM

AWS Lambda → Amazon CloudWatch

Create a CloudWatch Logs Subscription Filter to Lambda function with SAM

This sample project demonstrates how to create a Subscription Filter in Cloudwath Logs with Lambda as a log receiver.
The AWS SAM template deploys the resources and the IAM permissions required to run the application.

< 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-sam

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Omar Rosadio

Omar Rosadio

Cloud Engineer / AWS Community Builder in Serverless category.

Follow on LinkedIn