NAT Gateways and Internet Access from a VPC
Learn why a Lambda inside a private VPC subnet loses internet access and how NAT gateways and VPC endpoints restore connectivity securely.
The Surprise
A Lambda in a VPC can reach private resources, but it loses default internet access. Calls to public APIs suddenly time out.
Why It Happens
VPC Lambdas have no public IP. Without a route to the internet, outbound calls to external endpoints have nowhere to go.
All lessons in this course
- Lambda in a VPC for Private Resources
- Accessing Databases in VPC
- Network Security Best Practices
- NAT Gateways and Internet Access from a VPC