Skip to content

Instantly share code, notes, and snippets.

@jetstreamin
Last active March 4, 2019 20:27
Show Gist options
  • Save jetstreamin/9f21d7367abeb18b44e95802b6c01434 to your computer and use it in GitHub Desktop.
Save jetstreamin/9f21d7367abeb18b44e95802b6c01434 to your computer and use it in GitHub Desktop.
aws cloudwatch cron
# Use the hash sign to prefix a comment
# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)
# | | | +------- month (1 - 12)
# | | | | +---- day of week (0 - 7) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
#--------------------------------------------------------------------------
Cron Expression Examples
Frequency
Expression
10:15 AM (UTC) every day
cron(15 10 * * ? *)
6:00 PM Monday through Friday
cron(0 18 ? * MON-FRI *)
8:00 AM on the first day of the month
cron(0 8 1 * ? *)
Every 10 min on weekdays
cron(0/10 * ? * MON-FRI *)
Every 5 minutes between 8:00 AM and 5:55 PM weekdays
cron(0/5 8-17 ? * MON-FRI *)
9:00 AM on the first Monday of each month
cron(0 9 ? * 2#1 *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment