Amazon ECS task definition use cases
Learn more about how to write task definitions for various AWS services and features.
Depending on your workload, there are certain task definition parameters that need to be set. Also for EC2, you have to choose specific instances that are engineered for the workload.