Interview Prep/AWS/Containers and Serverless

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.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers and Serverless