Cron Job in AWS

0

Hi Team,

We are planning to run a cron job in AWS. The jobs runs for 1 hr every day.

  1. If we use EC2 rest of 23 hours we simply spend money on it
  2. As cron job runs for 1 hr, lambda function will not work. As lambda function will get timed out after 15 minute

So could you please let me any better solution for it.

Regards, Rajesh Khanna B

preguntada hace un año6404 visualizaciones
2 Respuestas
0

Hi, I would look into:

Hope it helps ;)

profile picture
EXPERTO
respondido hace un año
  • The EventBridge Scheduler requires a lambda function. But our cronjob will run for 1 hr. So lambda function might not help

0

The answer above seems very attractive to solve your isssue. I'd like to contribute with something else. If you cron job runs and depends on linux platform for a number of reason(s): Setup a Lambda to start your EC2 instance, starts your cron as fixed schedule and after an hour, a Lambda stops your EC2 instance.

Paul
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