Search code examples
amazon-web-servicesaws-lambdacronserverless-framework

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


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