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

feita há um ano6412 visualizações
2 Respostas
0

Hi, I would look into:

Hope it helps ;)

profile picture
ESPECIALISTA
respondido há um ano
  • 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 há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas