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

demandé il y a un an6404 vues
2 réponses
0

Hi, I would look into:

Hope it helps ;)

profile picture
EXPERT
répondu il y a un an
  • 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
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