Home > Software engineering >  Add custom schedule to AWS ec2 lifecycle manager
Add custom schedule to AWS ec2 lifecycle manager

Time:05-26

How can I use cron expression to schedule quarterly backup? Like Backup at 12:00AM on every 1st January, 1st April, 1st July and 1st October.

enter image description here

CodePudding user response:

Try setting up the event with this:

cron(0 12 1 1/3 ? *)

This translates to:

1/3 -> every third month

1 -> on the first day of the month

0 12 at 12 PM

One of the day-of-month or day-of-week values must be a question mark (?)

PS. Keep in mind that time is in UTC 0.

More on Scheduled Expressions in AWS

  • Related