Trigger lambda using a single AWS Eventbridge Scheduler on specific dates

0

I want to trigger a lambda function using EventBridge on specific dates which don't have any pattern. Let's say the dates are

12th Jan 2022, 29th Jan 2022, 1st Feb 2022, 14th Feb 2022, 15th March 2022, and 17th May 2022

How can I achieve this using EventBridge? Is it possible to pass multiple cron expressions to a single eventbridge scheduler?

[0 0 12 Jan * 2022,0 0 29 Jan * 2022,0 0 1 Feb * 2022,0 0 14 Feb * 2022,0 0 15 Mar * 2022,0 0 17 May * 2022 ]

Viraj
已提问 1 年前655 查看次数
2 回答
1

We have a new EventBridge Scheduler which allows you to create one time schedules. In your case I would just create those as discreet one time events. No need for Rules.

profile pictureAWS
专家
Uri
已回答 1 年前
  • What happens to the one-time schedules created? Will those get deleted automatically once the lambda is invoked or have to be manually deleted?

1

Hi,

since you do not have a chronological pattern (eg. every monday, etc..) you need to create a different EventBridge rule for each day.

Of course you can automate the creation of such rules so that you dont need to do it manually everytime.

profile picture
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则