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
posta 4 mesi fa200 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
con risposta 4 mesi fa
profile picture
ESPERTO
verificato 12 giorni fa
profile pictureAWS
ESPERTO
verificato 4 mesi fa
  • I was confused because they didn't emphasize that it was only 1:1. Thank you for answer

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande