Amazon ECS provides really good service for scheduled tasks : ECS Scheduled tasks that works pretty well. However it's important in this always keep one ECS instance in ECS cluster. What is the best way:
- Launch/scale in ECS instance in for periodical job (just before task execution);
- Run ECS tasks on newly created instance;
- Terminate/scale out instance after completion.
One possible workaround is to write lambda that will do smth. like that (launch ec2) but it looks as too much pain.