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
已提問 4 個月前檢視次數 200 次
1 個回答
1
已接受的答案

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
專家
已回答 4 個月前
profile picture
專家
已審閱 13 天前
profile pictureAWS
專家
已審閱 4 個月前
  • I was confused because they didn't emphasize that it was only 1:1. Thank you for answer

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南