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
preguntada hace un año655 visualizaciones
2 Respuestas
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
EXPERTO
Uri
respondido hace un año
  • 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
EXPERTO
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas