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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ