Reputation: 23
Is there a way to schedule my Lambda to run everyday ONLY during specific dates ? Example:
Also, could I use these dates to set the schedule expression with eventbridge - https://docs.aws.amazon.com/eventbridge/latest/userguide/example_eventbridge_PutRule_section.html?
Upvotes: 0
Views: 691
Reputation: 212
You can set up a rule to run an AWS Lambda function on a schedule. Here is a tutorial that shows how to do it.
At a high level, here are the steps.
Upvotes: 1
Reputation: 1193
You can use the below cron expression to trigger the lambda function between 1-July and to 30-July
0 0 1-30 7 ? *
Explanation of the cron expression:
You can refer attached image:
Upvotes: 1