containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

[ECS] [request]: auto assign public IP with EC2 launch type

Open blakegreendev opened this issue 6 years ago • 2 comments

Tell us about your request Please add support to auto assign public IP with EC2 mode and awsvpc network mode.

Which service(s) is this request for? ECS

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? We are trying to deploy a publicly accessible ECS service with EC2 mode and awsvpc network mode, however, when we ENABLE assign public IP in the network configuration of the cloudformation template, the error messages says it's not supported.

Are you currently working around this issue? Currently don't have a workaround yet, although might consider Fargate.

blakegreendev avatar Aug 28 '19 21:08 blakegreendev

This is a really surprising limitation making it hard to host services that do not support load balancers very well (e.g. because they insist on auto-discovering their public IP).

02strich avatar Jan 11 '20 19:01 02strich

Is there an update on this? It's hard to believe this is still a limitation. NAT gateways are expensive and unnecessary for many use cases. And if Fargate is not an option due to its own limitations, we're left with Host or Bridge mode.

Re: Host mode, the aws docs even explicitly state "We do not recommend using this mode."

BwL1289 avatar Feb 08 '24 19:02 BwL1289