Wednesday, December 29, 2021

[SOLVED] How to schedule an AWS lambda cron to run 7 days before the end of the month?

Issue

I'm trying to schedule an AWS lambda to run 7 days before the end of the month, using the Serverless framework, but I just can't figure it out. Is there a way to specify a minus something with the L wildcard? Looks like L-7 doesn't work. Thanks.


Solution

You can use the following:

59 23 L-7 * ? *

enter image description here



Answered By - Marcin