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•11h ago
If cost is the main issue, could you route all instances through a single nat, instead of one per AZ?

Mental Refactoring for the AI Age

https://zach.codes/p/mental-refactoring-for-the-ai-age
1•zackify•23s ago•0 comments

Process improvement is more important than metrics

https://khanin.info/en/blog/244
1•daniilkhanin•1m ago•1 comments

Show HN: Kefir – Native macOS menubar app for KEF wireless speakers

https://github.com/melonamin/Kefir
1•melonamin•4m ago•0 comments

It turns out you can train AI models without copyrighted material

https://www.engadget.com/ai/it-turns-out-you-can-train-ai-models-without-copyrighted-material-174016619.html
1•speckx•6m ago•0 comments

Symbase – A Symbolic Logic OS You Can Run in the Browser

https://fr3action.com
1•memv•8m ago•1 comments

Mono-JSX: JSX runtime for server side

https://github.com/ije/mono-jsx
1•ambigious7777•9m ago•0 comments

Show HN: Offline ESP32 that displays a new QR code every 30 seconds

https://github.com/sweing/localproof
1•tomtomistaken•15m ago•0 comments

Nuclear fusion record smashed as German scientists take significant step forward

https://www.livescience.com/planet-earth/nuclear-energy/nuclear-fusion-record-smashed-as-german-scientists-take-a-significant-step-forward-to-near-limitless-clean-energy
1•elsewhen•18m ago•0 comments

How US cities are supporting local economies through open contracting

https://www.open-contracting.org/2025/04/30/how-us-cities-are-supporting-local-economies-through-open-contracting/
1•reqo•19m ago•0 comments

Make It Rain: State Control of the Atmosphere in Twentieth Century America(2017)

https://library.oapen.org/bitstream/handle/20.500.12657/63439/9780226437378.pdf?sequence=1
2•tokai•20m ago•0 comments

EU's public consultation on the AI Act's classification of high-risk systems

https://ec.europa.eu/eusurvey/runner/AIhighrisk2025
3•MordodeMaru•25m ago•0 comments

Analyzing Metastable Failures in Distributed Systems

http://muratbuffalo.blogspot.com/2025/06/analyzing-metastable-failures-in.html
1•MordodeMaru•26m ago•0 comments

Highlighting commonalities increases the perceived legitimacy of critical voices

https://www.nature.com/articles/s44271-025-00238-1
1•PaulHoule•26m ago•0 comments

Tidewave: Beyond Code Intelligence

https://dashbit.co/blog/announcing-tidewave
1•lobo_tuerto•28m ago•1 comments

Pi in Pascal's Triangle

https://www.cut-the-knot.org/arithmetic/algebra/PiInPascal.shtml
1•senfiaj•28m ago•0 comments

Being fat is a trap

https://federicopereiro.com/fat-trap/
52•swah•34m ago•11 comments

Evu

https://www.evu.com
1•Evu•34m ago•0 comments

Ask HN: Google Workspace (impossibly) created on Gmail account

1•davikr•34m ago•0 comments

MBA Harvard Feels Undervalued

https://old.reddit.com/r/MBA/comments/1l3dscm/comment/mw02rnr/
2•darkolorin•35m ago•0 comments

Why Won't Some Musicians Take Me Seriously?

https://paste.sr.ht/~awal/2f563e99342271a56da22287b172c92d336dee5d
3•todsacerdoti•40m ago•1 comments

Show HN: Which side are you? Elon? Trump? Hate both?

https://www.brickofego.com/
2•leonagano•44m ago•6 comments

Michigan 10th century farming – drone-based survey of 330-acre area using Lidar

https://phys.org/news/2025-06-archaeologists-uncover-massive-year-native.html
1•dakna•46m ago•1 comments

ThornWalli/web-workbench: Old operating system as homepage

https://github.com/ThornWalli/web-workbench
2•rbanffy•47m ago•0 comments

Anki Users Get Rickrolled – Why Open Source Needs Trademarks

https://broderic.blog/post/anki-users-get-rickrolled/
1•Group_B•48m ago•0 comments

Google's ADK for agentic AI development – and some general thoughts

https://blog.engora.com/2025/06/googles-adk-for-agentic-ai-development.html
1•Vermin2000•49m ago•0 comments

The Common Pile

https://github.com/r-three/common-pile
1•gmemstr•50m ago•0 comments

Upcoming Changes to the Chrome Root Store

https://security.googleblog.com/2025/05/sustaining-digital-certificate-security-chrome-root-store-changes.html
1•xeonmc•51m ago•0 comments

The Illusion of Thinking

https://machinelearning.apple.com/research/illusion-of-thinking
2•andy99•53m ago•0 comments

Software engineering laws with comics – Hyrum's,Zawinski's,Conway's and 10 more

https://newsletter.manager.dev/p/the-13-software-engineering-laws
2•AntonZ234•54m ago•0 comments

The Bitcoin scandal shaking Czech politics

https://www.expats.cz/czech-news/article/explained-the-bitcoin-scandal-shaking-czech-politics-and-why-it-matters
1•janjones•55m ago•0 comments