Skip to content
aws avatar

Enabling Lambda Vpc Internet Access

Step-by-step AWS procedure that gives VPC-attached Lambda functions outbound internet access through NAT Gateway routing.

CCM score
66 of 100
skills.sh installs
7K
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating NAT Gateway infrastructure, configuring public and private subnet routing, and updating security groups for Lambda
  • Includes a reference procedure file (references/lambda-vpc-internet-access.md) and troubleshooting for NAT, timeout, propagation, and route table issues
  • Guides checks that the 0.0.0.0/0 route points to the NAT Gateway and that outbound security group rules permit needed ports
  • Designed for VPC-attached Lambda functions that cannot reach the internet

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill enabling-lambda-vpc-internet-access -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Enabling Lambda VPC Internet Access

Overview

Domain expertise for enabling internet access from AWS Lambda functions running inside VPC private subnets. Lambda functions in a VPC cannot receive public IP addresses, so outbound internet access requires NAT Gateway infrastructure that routes traffic from private subnets through a public subnet to an Internet Gateway.

Enable internet access for a VPC Lambda function

To set up NAT Gateway infrastructure and configure routing for a Lambda function that needs internet access, follow the procedure exactly. See Lambda VPC internet access setup procedure.

Troubleshooting

NAT Gateway not working

Verify the route table associated with the Lambda subnets has a 0.0.0.0/0 route pointing to the NAT Gateway. See the full procedure for details.

Lambda function timeout

Check that security group outbound rules allow the necessary ports and that both the NAT Gateway and Internet Gateway are properly configured.

Network changes not taking effect

Details

Repository
github.com/aws/agent-toolkit-for-aws
Category
DevOps & Cloud
First seen
Jun 3, 2026

More from aws/agent-toolkit-for-aws

All 54

Similar to Enabling Lambda Vpc Internet Access

More DevOps & Cloud