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
demandé il y a un an655 vues
2 réponses
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
EXPERT
Uri
répondu il y a un an
  • 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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions