How can I run a cron job at 2am UTC at every Sunday and Wednesday on AWS.
0 2 * * SUN,WED *
The time is fine, just the days seem to be the wrong format (getting Parameter ScheduleExpression is not valid
via serverless). But all resources I can find do only state ranges of days, how to select single ones?
2
Answers
Your cron should look like this:
Or:
Your issue is with the Day of month.
Check the result in EventBridge
From AWS documentation:
The correct way should be: