Scheduled Amazon EventBridge rule for AWS Lambda

Amazon EventBridge → AWS Lambda

Create a scheduled EventBridge rule that invokes a Lambda function

This template deploys a Lambda function that is triggered by an EventBridge periodically. 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/terraform-eventbridge-scheduled-lambda

Deploy

terraform initterraform apply --auto-approve


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy

Created by:

Anton Babenko

Anton Babenko

AWS Hero, Terraform influencer, maintainer of Terraform AWS Modules, creator of serverless.tf, weekly.tf, modules.tf, and some more.

Follow on LinkedIn