[AWS SAM] Run a Lambda function on an EventBridge schedule

Created on November 30, 2026

Add a Schedule event to a Lambda function's Events in an AWS SAM template. SAM creates an EventBridge rule that invokes the function. The cron expression below runs every day at 00:00 UTC.

Transform: AWS::Serverless-2016-10-31
Resources:
  MyOriginalFunction:
    Type: AWS::Serverless::Function
    Properties:
      FunctionName: my-original-function
      Handler: app.lambda_handler
      Runtime: python3.12
      CodeUri: src/
      Events:
        Schedule:
          Type: Schedule
          Properties:
            Name: my-original-eventbridge-rule
            Schedule: cron(0 0 * * ? *)

Place the handler in src/app.py and define lambda_handler before deploying.

AWS SAM