How do I associate an Elastic IP with a Fargate container?

后端 未结 2 600
故里飘歌
故里飘歌 2020-12-31 00:54

I\'m exploring using the new Fargate option for my ECS containers. One constraint is that the running task must always be accessible at the same Public IP address.

M

相关标签:
2条回答
  • 2020-12-31 01:13

    Fargate does not currently support ENI assignment, so it is not possible to have an Elastic IP associated with a Fargate task definition.

    The only way you can use a static IP address with Fargate is via the Application Load Balancer with an alias.

    0 讨论(0)
  • 2020-12-31 01:24

    Actually your can do it with Network Load balancer. It is a special type of load balancer, where elastic IP can be added. This instruction can really help https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html

    0 讨论(0)
提交回复
热议问题