What is ECS?
We discussed in the previous section that running and managing smaller workloads is easy, but when workload sizes increase, maintenance becomes a challenge. Keeping track of all the available servers in a cluster and ensuring the available capacity, server health, resource utilization, and container placement is likely to become a headache.
To solve the challenges mentioned here, you need an orchestrator, which takes care of these issues for you. Amazon ECS is a fully managed container orchestration service that allows you to quickly deploy, manage, and scale containers in the cloud, providing the necessary tooling to manage both the containers and infrastructure. In order to understand ECS better, we need to first discuss a few related concepts of clusters, services, tasks, and task definitions.
Task definitions
In ECS, a task definition describes your application containers and their configuration. The task definition is a file in JSON format that works like...