Amazon EventBridge to AWS Lambda

EventBridge → AWS Lambda

Create an EventBridge rule that invokes a Lambda function

This project contains a sample AWS CDK template for invoking AWS Lambda from an Amazon EventBridge Rule. It also creates a CloudWatch Log Group for the Lambda function for observation of incoming events, with a retention and removal policy.

< 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/eventbridge-lambda-cdk

Deploy

See the GitHub repo for detailed deployment instructions.


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: npx cdk destroy.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus".
3. You see a message confirming DELETE_COMPLETE.

Created by:

Shehryar Abbasi

Shehryar Abbasi

Senior DevOps Cloud Architect at AWS.

Follow on LinkedIn