Amazon ECS is a managed service for containerized applications based on Docker containers. Managed service implies that ECS manages all container orchestration aspects including launching a cluster of virtual machines (EC2 instances), creating and scheduling containers on the virtual machines, and scaling the cluster of VMs.
Problem:Â Amazon ECS runs Docker containers on virtual machines (EC2 instances). The EC2 launch type incurs an overhead of launching and managing a cluster of virtual machines (EC2 instances). As a primer on ECS, a task definition defines a group of containers (container definitions). A container definition defines a name, Docker image, port mappings, entry point, and command. Resources (CPU and memory) are defined at both the task and container level. A service definition defines a service and consists of a task definition, launch type, load...