Amazon EventBridge to AWS Lambda

EventBridge → AWS Lambda

This pattern creates a Lambda function that publishes an event to EventBridge.

This template deploys a Lambda function that is triggered by an EventBridge rule. In this example, the rule filters for specific attributes in the event before invoking the function.
The Events section of the AWS::Serverless::Function type also sets up the required permissions for EventBridge to invoke this specific 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/eventbridge-lambda-terraform

Deploy

terraform initterraform apply


Testing

See the README in the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: terraform destroy.
2. Confirm the stack has been deleted: terraform show

Created by:

Stephen Monaghan

Solutions Architect, AWS

Follow on LinkedIn