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
질문됨 일 년 전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
답변함 일 년 전
  • 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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠