[AWS] NAT Gateway How-To & Setup Guide — Private Subnet Internet & Cost Optimization
A NAT Gateway lets Private Subnet EC2s use outbound internet (apt, external APIs) while staying secure — step-by-step creation, EIP attach, routing + a cost analysis and the NAT-instance alternative.
![[AWS] NAT Gateway How-To & Setup Guide — Private Subnet Internet & Cost Optimization](assets/posts/aws-nat-gateway-guide/cover.webp)
![[AWS Cost] A Guide to Cutting AWS Infrastructure Costs by 55% (Graviton Migration & Fixed-Cost Optimization Strategy)](assets/posts/aws-cost-optimization/cover.webp)
![[AWS] EC2 SSH Connection Error: How to Fix the UNPROTECTED PRIVATE KEY FILE Error (ssh pem key permission setup)](assets/posts/ec2-ssh-unprotected-private-key/cover.webp)


![[AWS Infra] Building & Configuring a NAT Instance to Cut NAT Gateway Costs (Part 2)](assets/posts/nat-instance-build-2/cover.webp)
![[AWS Infra] Building & Configuring a NAT Instance from an AMI to Cut NAT Gateway Costs (Part 1)](assets/posts/nat-instance-build-1/cover.webp)