Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Switch to rate instead of cron for easier to use schedule syntax
  • Loading branch information
bertpareyn committed May 30, 2019
commit 12f861d7b0ccebf3b9abb3c79cd263cf6fd5de7f
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ functions:
createBackup:
handler: index.handler
events:
- schedule: cron(* 0/2 * * ? *) # Runs a backup every 2 hours. https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
- schedule: rate(2 hours) # Runs a backup every 2 hours. https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions