Amazon ECS task networking for Amazon ECS Managed Instances
The networking behavior of Amazon ECS tasks running on Amazon ECS Managed Instances is determined by the network mode specified in the task definition. You must specify a network mode in the task definition. You will not be able to run tasks on Amazon ECS Managed Instances using a task definition that doesn't specify a network mode. Amazon ECS Managed Instances supports the following networking modes, ensuring backward compatibility for migrating workloads from Fargate or Amazon ECS on Amazon EC2:
Network mode | Description |
---|---|
|
Each task receives its own elastic network interface (ENI) and private IPv4 address. This provides the same networking properties as Amazon EC2 instances and is compatible with traditional Fargate tasks. Uses ENI trunking for high task density. |
|
Tasks share the host's network namespace directly. Container networking is tied to the underlying host instance. |