Lambda function that poll events from SQS only the first day of the month

438 Views Asked by At

I need a lambda function that poll events from a fifo SQS queue only the first day of the month. Is it possible?

For example:

  • One lambda adds some events to a queue only the first day of the month.

  • Another lambda should process queue's messages in the same day.

Requirements

  • Each message must be processed by a dedicated lambda invocation
  • Lambda Function's Concurrency Limit is set to 1.
  • The polling from the queue should occurr only the first day of the month, since on other days the queue is empty.

I'm looking for a solution like the one suggested by AWS here. The only difference is that the polling should only take place on the first day of the month in order to save money.

0

There are 0 best solutions below