Hellos! I’m having an issue where the Lambda cold start is really long, something like 90 seconds. The first few API Gateway calls timeout (since it’s 30sec max timeout). After the cold start the API calls return very quickly, eg 150ms for simple call, 1000ms for a large DB query.
My setup has RDS, so the Lambdas are in a VPC (not sure that makes a difference).
My main question is how to even troubleshoot this?
I have the prewarm scripts running but I need to troubleshoot if they’re working.
I’m using Jets version 2.2.5.
Update: looks like the prewarm Lambda weren’t working because they were in the private subnets so couldn’t receive Lambda invocations. That’s now fixed following this guide: https://aws.amazon.com/premiumsupport/knowledge-center/internet-access-lambda-function/