Reputation: 2918
How can I write the cron syntax to schedule a Lambda to run every ten minutes at the start of every hour? Here is what I've tried but keep running into errors:
users-cron:
handler: functions/users.cron
events:
- schedule:
rate: rate(10 minutes)
- schedule:
rate: cron(0-10 0-23 ? * MON-SUN *)
Upvotes: 2
Views: 1692
Reputation: 2918
This is the exact syntax that answers my question:
users-cron:
handler: functions/users.cron
events:
- schedule:
rate: cron(0/10 0-23 ? * MON-SUN *)
Upvotes: 1