How to submit aws batch job periodically

Viewed 7714

We are looking for aws batch job and we want to submit this batch job on a certain predefined interval. For e.g.: we want to auto submit this job every 4 hours.

What could be a preferred way to achieve it.

1 Answers

You can use Cloudwatch to schedule Batch jobs. In the Cloudwatch console:

  1. Click on Rules
  2. Click on the blue "Create rule" button
  3. Click the "Schedule" radio button
  4. Change the fixed rate to 4 hours, or you can use a cron expression
  5. On the right side of the screen add a target of batch job, fill in the queue, job name, job definition, etc.

We use this for all of our batch jobs, works very well.

Related