Cron Rotation Bug for AWS Secret Manager

0

Hi,

I think there is a bug with the cron rotation. As seen in my screenshots, I configured my cron job to run at 2:00pm on saturday, Cron Edit

however, it keeps showing and running the job on the following day (Sunday in this case) instead of Saturday; the timing is also showing up differently too. Thank you. Cron Config Zoom out

asked a year ago401 views
2 Answers
0

The "Next rotation date" seems to indicate the time before the Secrets Manager finishes the rotation.
If the "Window duration - Options" is set to "1h", the "Next rotation date" will show the value one hour after the cron setting.
So I thought "Next rotation date" might be the time when the Secrets Manager finishes the process, not the time when the rotation starts.
https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_schedule.html

profile picture
EXPERT
answered a year ago
  • That would be the case if I set my 'Windows Duration' however, I left it blank since it was optional. My configured date should start on saturday. I have checked my logs too and it did run on Sunday instead of Saturday.

  • If I set the "Window duration" to "2h" or something like that, will it still run the next day? We may need to consider setting a "window duration" as a workaround, as it may be difficult to fix the problem on our end.

0

The pattern looks correct, assuming that you want it to run at 2pm UTC on the first Saturday of each month.

In relation to the rotation running on Sunday instead of Saturday, can you clarify which time zone you are in? The Secrets Manager cron expression is run according to Coordinated Universal Time (+0 hours), which may be Sunday in your local time zone. For example, 2pm UTC on a Saturday is 12am Sunday in Australian Eastern Standard time.

AWS
Kosol
answered a year ago
  • My timezone is SGT which shouldn't be an issue it should run at 10 pm my time.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions