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
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.
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