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.
Follow these steps to create a scheduled task:
- Log in to the AWS and navigate to the Amazon ECS console ...