aws / elastic-beanstalk-roadmap

AWS Elastic Beanstalk roadmap
https://aws.amazon.com/elasticbeanstalk/
Creative Commons Attribution Share Alike 4.0 International
283 stars 11 forks source link

Support IPv6 in beanstalk - NAT gateway avoidance #208

Open Ottunger opened 2 years ago

Ottunger commented 2 years ago

Community Note

Tell us about your request What do you want us to build?

EBS should support to build an EC2 instance (for app) even if this instance only has an IPv6 stack.

Is this request specific to an Elastic Beanstalk platform? If so, which one(s)?

It al least affects nodejs12.x on ALBv2. I suspect broader scope.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? What outcome are you trying to achieve, ultimately, and why is it hard/impossible to do right now? What is the impact of not having this problem solved? The more details you can provide, the better we'll be able to understand and solve the problem.

For now, EC2 instances created by EBS have IP addresses depending on the VPC they run in. If the VPC they run in issues both IPv4/IPv6 addresses, they will have both. If the VPC only supports IPv6, so will the EC2 instances created.

A common pattern to design a secure application would be to have instances in a non-internet facing network, while load balancers would be put in an internet-facing network and managing requests. This means that, while setting up an app instance (and using it afterwards, if app needs internet connectivity), it will only have access to internet if there is a NAT gateway for IPv4. NAT gateways are an extremely cost prohibitive device in AWS, costing at least as much per day as medium sized EC2 instances!

Over IPv6, one can manage to have network access without requiring a gateway and avoid these costs.

However, EBS does not manage to set up properly an instance when this instance only has IPv6 address. Currently it fails while downloading scripts for self EBS set up (from S3 because not using S3 dualstack endpoints).

Are you currently working around this issue? How are you currently solving this problem?

We stick with IPv4 and pay the NAT gateway...

Additional context Anything else we should know?

Issue had been posted here https://forums.aws.amazon.com/message.jspa?messageID=994192#994192

Attachments If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)

axyjo commented 1 year ago

Bump - this is even more important as the IPv4 pricing changes roll out to AWS next February

dennisvang commented 6 months ago

@Ottunger I assume by "EBS" you mean Elastic Beanstalk, not Elastic Block Store?

Ottunger commented 6 months ago

Yes, of course.

TBH, I am still paying the AWS toll on this for now.

vickyRathee commented 4 months ago

Paying $$$ of bill unnecessary from 4 months due to the lack of this option. Please add this!

msitms commented 4 months ago

Possible workarounds: