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

질문됨 2년 전636회 조회
2개 답변
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
전문가
답변함 2년 전
  • 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
답변함 2년 전
  • My timezone is SGT which shouldn't be an issue it should run at 10 pm my time.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인