Does aws ecs fargate's eni allocate only one per task?

0

I know that in the case of EC2 in AWS ECS, multiple tasks can be assigned to one ENI by utilizing the trunking or bridge function.

However, in the case of fargate, the network part of AWS ECS shows that only EC2 can be trunked or bridged, so it is not clear whether multiple tasks can be assigned to one ENI.

I am curious about whether and to what extent it is possible to connect multiple tasks when fargate receives ENI allocation in AWS ECS.

joker
asked 3 months ago178 views
1 Answer
0
Accepted Answer

Hello.

For ECS Fargate, you can only select "awsvpc" mode as the network mode.
https://docs.aws.amazon.com/AmazonECS/latest/bestpracticesguide/networking-networkmode-awsvpc.html

The awsvpc network mode is supported for Amazon ECS tasks hosted on both Amazon EC2 and Fargate. Be mindful that, when using Fargate, the awsvpc network mode is required.

In "awsvpc" mode, one ENI is created for each task.
In other words, there is a 1:1 relationship between ENI and tasks.

profile picture
EXPERT
answered 3 months ago
profile pictureAWS
EXPERT
reviewed 3 months ago
  • I was confused because they didn't emphasize that it was only 1:1. Thank you for answer

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions