Skip to content

Instantly share code, notes, and snippets.

@deegloo
Last active October 15, 2018 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deegloo/55b679cb93be92f5b7dcaffe54925f95 to your computer and use it in GitHub Desktop.
Save deegloo/55b679cb93be92f5b7dcaffe54925f95 to your computer and use it in GitHub Desktop.
Schedule AWS Lambda execution once per day using CloudWatch
NotifierLambdaScheduledRule:
Type: AWS::Events::Rule
Properties:
Name: 'notifier-scheduled-rule'
Description: 'Triggers notifier lambda once per day'
ScheduleExpression: cron(0 7 ? * * *)
State: ENABLED
Targets:
-
Arn: !GetAtt NotifierLambda.Arn
Id: TargetFunctionV1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment