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
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/0route 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 -yInstalls 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- Exporting Rds To S37K
- Setting Up Cloudtrail Multi Region7K
- Creating Amazon Aurora Db Cluster With Instances6.9K
- Troubleshooting Efs6.8K
- Aws Lambda Durable Functions6.8K
- Aws Lambda Managed Instances6.7K
- Aws Lambda Microvms6.7K
- Aws Cleanrooms6.7K
- Amazon Aurora Postgresql6.6K
- Querying Aws S36.5K
- Amazon Opensearch Service6.5K
- Querying Aws Cloudwatch6.5K
- Routing Traffic With Route53 And Cloudfront6.5K
- Amazon Elasticache6.4K
- Amazon Aurora Mysql6.2K
- Managing Amazon Msk6K
- Developing Applications On Managed Service For Apache Flink5.9K
- Aws Serverless11.8K
- Aws Iam11.7K
- Aws Observability11.6K
- Aws Containers11K
- Aws Cdk11K
- Aws Billing And Cost Management10.5K
- Aws Cloudformation10.2K
Similar to Enabling Lambda Vpc Internet Access
More DevOps & Cloudconfiguring-vpc-endpoints-for-private-aws-service-accessaws/agent-toolkit-for-aws7.4K installsPrivate AWS service access through VPC endpoints, covering gateway and interface types built on PrivateLink.
creating-production-vpc-multi-azaws/agent-toolkit-for-aws7.1K installsProduction-ready multi-AZ VPC with public and private subnets, NAT gateways, and tiered security groups.
digitalocean-networkingbobmatnyc/claude-mpm-skills425 installsDigitalOcean networking reference covering VPC, firewalls, load balancers, reserved IPs, DNS, IPv6, and NAT gateway.
aws-lambda-python-integrationgiuseppe-trisciuoglio/developer-kit3.9K installsPython Lambda guidance comparing AWS Chalice with raw handlers, covering cold starts, API Gateway, and deployment.