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

Variants

This pattern is available in the following frameworks/languages:

AWS CDK:TypeScript
AWS SAM:JavaPython
Terraform:Python
Terraform (with modules):Python

Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-scheduled-lambda/python/terraform-modules

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.