Running tasks on a cron-like schedule

You can create the CloudWatch events rule from the Amazon ECS console. This will run one or more tasks at specified times in your cluster. You can run the task at a specific time by setting the intervals to take backup operations or log scans.

You can set a schedule event rule at a specific interval such as a task that runs at every N minutes, hours, or days. You can set a complicated schedule event rule by using a cron expression.

Amazon ECS tasks can be run like cron scheduling using CloudWatch Events targets and rules.

Scheduled tasks are not supported by task definitions that use awsvpc network mode.

Follow these steps to create a scheduled task:

  1. Log in to the AWS and navigate to the Amazon ECS console ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.