Search code examples
amazon-web-servicesamazon-ecsamazon-vpcmulticastaws-fargate

AWS ECS Fargate udp multicast between containers within VPC


I would like to deploy udp multicast sender and receiver on ECS Fargate within the same VPC. I follow Transit gateway multicast instruction but seems works only for EC2.

I'm wondering is ECS fargate support multicast?

AWS mentions

A non-Nitro instance cannot be a multicast sender

Is fargate use non-Nitro instance by default? or is it configurable?

Very appreciate for any helps, thanks


Solution

  • Here's a blog post on AWS on how to set up udp multicast on ECS:

    https://github.com/aws-samples/amazon-ecs-multicast-sample

    The page states that the following requirements must be met:

    • A VPC, with a pair of public and private subnets spread across two Availability Zones
    • An Internet Gateway and NAT gateways
    • A Transit Gateway with VPC attachments
    • A Multicast Domain with subnet associations
    • ECS Cluster
    • EC2-based container instances configured to support IGMP version 2
    • Container images capable of sending and receiving multicast

    The page also states that Fargate is not yet supported, only on instance backed ECS clusters. So looks like the answer is no.