How do I schedule an AWS Lambda cron to run at 11:30pm on the last day of the month?

Bryce York

I'd like my Lambda function to run on the last day of every month at 11:30pm.

I'm using the Serverless Framework so all I need is the right Schedule Expression (docs here & info here)

Any help greatly appreciated.

NB: Unfortunately I can't just do it at the start of the month as there's a dependency on pulling data from a 3rd party tool that only calculates data for 'this month'.

Zanon

From docs:

  • The L wildcard in the Day-of-month or Day-of-week fields specifies the last day of the month or week.

So, try this cron expression for 11:30 PM at the last day of the month:

cron(30 23 L * ? *)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I get the last day of a month?

How do I run a script for 1st working day of every month in cron?

How do i calculate total number of lambda invocations in AWS for the last month using cloudwatch metric?

Schedule the last day of every month

How do I find the first and last day of next month?

How to schedule the CRON to be run 1 to 1:30?

How do defining the first and last day of the month

How to run Cron job(Event schedule) in AWS Windows instance

Cron schedule from 7:15am to 8:30pm at every minute

How to run background task erveryday at 6:30PM

How can I schedule a laravel task on a specific day of the month?

How to trigger aws lambda at different schedule every day

Cron - How to run a job on the first weekday after a specific day of the month?

How can I programmatically schedule an AWS lambda function to run X amount of time after an event?

Cron expression for monitoring schedule on aws Lambda

how may i select the time interval from last month ?, and it must also be between 1pm from last day of the last month till midday of the actual day

Cron expression for the second to last day of week of the month

How to schedule AWS Lambda to run with different frequency based on the hour

How to run a cron task at the last minute of each day?

How do I run PhantomJS on AWS Lambda with NodeJS

How do I schedule a task to run once?

How to schedule a cron for the first Thursday of every month

Given a Date Object how do I determine the last day of its month?

How do I specify from a date to the last occurence of a day in a specific month, using iCal?

How do i get the first and last day value per month in pandas?

How do I code a dynamic NetSuite date range that begins the 1st day of the month (4 months ago) and ends the last day of last month?

How do I get the day of the month in javascript?

How do I check day for cross month

CRON job to run on the last week of the month