Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)
All skills

enabling-lambda-vpc-internet-access

Set up NAT Gateway, subnet routes, and security groups so a VPC Lambda function can reach the internet.

When to use it

Your Lambda function is attached to a VPC and calls to external APIs or services time out, while the subnets have no route to the internet.

For example

You say

Use enabling-lambda-vpc-internet-access to fix my Lambda function that times out calling an external API; it runs in private subnets of my VPC.

You get
  • NAT Gateway setup
  • Route table updates
  • Security group outbound rules

How it works

  • Traffic is routed from private subnets through a public subnet to an Internet Gateway.
  • VPC network changes can take 1–2 minutes to take effect before testing.