Scheduled Amazon EventBridge rule for AWS Lambda

EventBridge → AWS Lambda

Create an scheduled EventBridge rule that invokes a Lambda function

This template deploys a Lambda function that is triggered by an EventBridge Schedule. In this example, the Lambda function logs text to the console every minute.

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