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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ