frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Alternatives to NAT gateways for EC2 instances

6•nodesocket•1d ago
I’m looking to deploy EC2 instances in multiple availability zones and would like the EC2 instances to only be on the private subnet with no public ip address assigned. However the instances need outbound access for API requests, etc.

NAT gateways cost $32/mo per AZ and that doesn’t include bandwidth which is absurdly expensive. I could manually deploy NAT instances but still looking at a minimum of around $8/mo per for t5g.small instances and EBS. Not to mention the maintenance and setup of the NAT instances.

Any clever tricks for outbound internet access for EC2 instances that are in private subnets?

Comments

spaceprison•1d ago
You’ll need a vpc subnet connected “something” with outbound access.

Natgw and nat instance are about all there is or something crazy like a site to site vpn attached to your vgw and a server/firewall outside of aws/ec2 connected to the internet acting like a router…?

nodesocket•1d ago
Thanks, figured as much. AWS hasn't lowered the price of NAT gateways in (ever) I think. It's a bit absurd seeing as the dramatic price reduction of Graviton based instances and such. NAT gateways should be like 1/2 or 1/3 the current cost.
somedanishguy•1d ago
I can only recommend fck-nat.dev as an alternative to aws’s own nat instances.
nodesocket•1d ago
Awesome, will look at deploying fck-nat.dev. Love the name. So absurd AWS hasn’t updated their NAT instance AMI since 2018 and running Amazon Linux v1 which is end of life.
romanhn•1d ago
Fck-nat is great, and I'm running it for the exact same reason that the NAT Gateway is expensive for my hobby project. I configured it with an auto scaling group to bring it back up if the instance dies. The instance doubles as a bastion host as well.
samcat116•1d ago
The ideal answer is IPv6 subnet with an egress only internet gateway
ecesena•13h ago
If cost is the main issue, could you route all instances through a single nat, instead of one per AZ?

Ask HN: Should I build a directory product?

3•alizaid•30m ago•2 comments

Ask HN: Startup getting spammed with PayPal disputes, what should we do?

274•june3739•2d ago•177 comments

Ask HN: Anyone else feeling increasingly alienated from the industry?

15•saubeidl•6h ago•13 comments

Ask HN: Has anybody built search on top of Anna's Archive?

281•neonate•2d ago•146 comments

Ask HN: What are your fav/goto decision making hacks/heuristics?

4•ottaborra•7h ago•7 comments

Ask HN: Who is hiring? (June 2025)

365•whoishiring•4d ago•450 comments

Ask HN: Running AI agents in isolated environments

4•polycaster•9h ago•0 comments

Ask HN: How do I learn robotics in 2025?

395•srijansriv•4d ago•99 comments

Ask HN: How do I learn practical electronic repair?

180•juanse•6d ago•111 comments

Ask HN: Walking while working and having meetings

2•martythemaniak•13h ago•5 comments

Ask HN: Who's Using the Origin Private File System?

4•ChadNauseam•13h ago•1 comments

Ask HN: Anyone making a living from a paid API?

247•meander_water•6d ago•172 comments

Ask HN: Options for One-Handed Typing

92•Townley•2d ago•93 comments

Ask HN: Who wants to be hired? (June 2025)

125•whoishiring•4d ago•384 comments

Ask HN: What Does Your Self-Hosted LLM Stack Look Like in 2025?

17•anditherobot•1d ago•6 comments

Ask HN: What do you put in claude.md and what you leave out?

4•bognition•23h ago•2 comments

O(1) memory, no-preprocessing reachability algorithm for 2D grids

2•MatthiasGibis•20h ago•1 comments

Ask HN: What tools are you using for AI evals? Everything feels half-baked

4•fazlerocks•21h ago•2 comments

Ask HN: Where do you go for cutting-edge dev news and info?

2•TimTheTinker•22h ago•9 comments

Ask HN: What is the best LLM for consumer grade hardware?

238•VladVladikoff•1w ago•182 comments

Ask HN: Dealing with Vibe Coding Depression?

16•softirq•1d ago•22 comments

Ask HN: How are parents who program teaching their kids today?

101•laze00•4d ago•91 comments

Reaching my first 100 users without money or audience (at 10K users now)

32•felixheikka•3d ago•11 comments

How do you store and maintain your CV/resume over time?

10•xantin•1d ago•16 comments

Ask HN: List of skills to survive the AI tsunami

16•cookiemonsieur•1d ago•6 comments

Ask HN: What's with the repeated job posts on "Who's hiring"?

85•rafavento•2d ago•41 comments

Ask HN: Is Adrian Colyer of "The Morning Paper" fame ok?

10•yencabulator•14h ago•0 comments

Ask HN: Best way to get laid off

10•jakamm•1d ago•24 comments

Ask HN: Anyone using project management tools for personal projects?

4•localbuilder•2d ago•12 comments

Ask HN: Unexplainable Copilot Premium Requests

4•drrotmos•2d ago•2 comments