[英]How do I schedule a Lambda function to execute everyday only during specific dates?
Is there a way to schedule my Lambda to run everyday ONLY during specific dates?有没有办法安排我的 Lambda 仅在特定日期每天运行? 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 ?另外,我可以使用这些日期来设置 eventbridge 的计划表达式 - https://docs.aws.amazon.com/eventbridge/latest/userguide/example_eventbridge_PutRule_section.html吗?
You can use the below cron expression to trigger the lambda function between 1-July and to 30-July您可以使用以下 cron 表达式在 7 月 1 日至 7 月 30 日之间触发 lambda function
0 0 1-30 7 ? *
Explanation of the cron expression: cron 表达式的解释:
You can refer attached image:您可以参考附图:
You can set up a rule to run an AWS Lambda function on a schedule.您可以设置规则以按计划运行 AWS Lambda function。 Here is a tutorial that shows how to do it.这是一个教程,展示了如何做到这一点。
At a high level, here are the steps.在高层次上,这里是步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.