Process Flow - NAT Gateway for private subnet internet
Private Subnet Instance
Route Table: directs 0.0.0.0/0 to NAT Gateway
NAT Gateway in Public Subnet
Internet Gateway
Internet
Traffic from private subnet instances goes to NAT Gateway via route table, then to Internet Gateway, enabling internet access without exposing private instances.