lambda times out after we attached it to a vpc
Worked fine for months, then we added VPC config to reach RDS and every invocation times out after 15s. Python 3.11 Lambda, two private subnets, security group allows 5432 to the DB. CloudWatch logs show the function starting and then Task timed out after 15.00 seconds, no application error. The RDS connection itself works from an EC2 in the same subnet. What did attaching the VPC break? A NAT gateway is about $32 a month before data, which feels like a lot for two calls.
4 replies