Skip to content

Instantly share code, notes, and snippets.

@em-shea
Last active November 3, 2023 21:03
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save em-shea/b4c76411371001a756599a5da5e582b8 to your computer and use it in GitHub Desktop.
EventBridge scheduled event Lambda example
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
Function:
Type: 'AWS::Serverless::Function'
Properties:
CodeUri: src/Function
Handler: handler.handler
Runtime: python3.11
Events:
ScheduledEvent:
Type: Schedule
Properties:
# Read more about schedule expressions here:
# https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html
# This event runs every Friday at 16 UTC/9AM PST
Schedule: cron(0 16 ? * FRI *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment