CloudCart, an e-commerce startup, is migrating its legacy monolithic shopping cart application to AWS. The development team has decided to containerize the application and run it on Amazon Elastic Container Service (Amazon ECS) using the AWS Fargate launch type to minimize operational overhead. During task definition configuration, the team is selecting the network mode for the task. Which network mode must the team configure in the Amazon ECS task definition to deploy this containerized application on AWS Fargate?
- awsvpcAnswer
- Bbridge
- Chost
- Dnone
Answer
The correct network mode is awsvpc, as AWS Fargate requires the awsvpc network mode to allocate an elastic network interface (ENI) directly to each running task.
AWS Fargate only supports the awsvpc network mode. In this mode, every task execution receives its own dedicated Elastic Network Interface (ENI) and private IPv4 address, ensuring security group isolation and simple network configuration similar to EC2 instances.
Step-by-Step Solution
Key Concept
AWS Fargate Networking Modes