This is an introductory guide by AWS on how to deploy microservices - based applications on ECS
Apparently (as also becomes evident from the documentation), a so called task definition should encompass all of your containers that make up you stack.
i.e. if your corresponding docker-compose.yml
file was made of 5 services
(in the docker compose context), these should all end up in the same ECS Task Definition (?).
From what I understand, this also serves the purpose of automated service discovery among the containers (as is the default behavior in docker-compose
and docker swarm
);
The problem lies in the fact that the scaling possibility when it comes to ECS is (besides EC2
instance) per ECS
Service.
Does this mean that you cannot have container-level scaling ?
If I want a service scale, I would have to scale all of my containers within my so called stack?