How does `awsvpc` network mode work in ECS?
IntermediateConceptContainers and Serverless
Answer
Each task gets its own ENI with a private IP in your subnet and its own security group, so tasks behave like first-class VPC citizens. It is required for Fargate. Load balancers use ip target type. The limit on EC2 is the number of ENIs per instance, mitigated by ENI trunking which increases task density.
More on Containers and Serverless
ECS vs EKS vs Fargate: what is the relationship?BeginnerWhat are ECS task definitions, tasks and services?BeginnerWhat are ECS capacity providers?IntermediateWhat is the difference between the ECS task role and the task execution role?IntermediateWhat deployment strategies does ECS support?AdvancedWhat does the EKS control plane include and who manages it?Beginner