I have a batch processing system which runs for 5 hours daily on a fixed time. With AWS Batch, I could schedule the job which creates the required EC2 instances to do the job and terminate back the instances.But with ECS, can i launch and terminate the EC2 instance automatically as per my requirement?
Asked
Active
Viewed 3,891 times
1 Answers
4
This automatic downscaling can be done using AWS Batch as long as you create the Compute Environment as a Managed Compute Environment instead of unmanaged.
However, using Tasks in ECS means the EC2 resources must be cleaned up and deleted manually. It can be built in to part of your application or managed with CloudFormation, but scaling down those resources is going to be your responsibility in the end.

Segfault
- 8,036
- 3
- 35
- 54
-
What if I use AWS fargate? Looks like it can take care of managing the servers part and I only need to work with containers. – Chandra Jan 02 '19 at 18:04
-
I think AWS fargate will solve the purpose you mentioned. But for resource allocations are restricted for ECS instances. That will restrict ECS to use for long term batch jobs as per my knowledge. – VNS Mar 06 '19 at 04:45