Currently, I use AWS Lambda as backend behind AWS API Gateway with lambda proxy integration. Since my lambda function needs to have access to VPC resources, the lambda functions is in a VPC. Unfortunately, lambda in VPC has extreme long cold start times (sometimes more than 10 seconds). Therefore, I want to use alternatives for my lambda scripts which are written in python. One alternative I thought about is to use elastic beanstalk with a python flask application and integrate this via a load balancer and VPC Link to API Gateway.
Are there any better or easier approches to use python or node js scrips as API Gateway backend without using lambda and with access to VPC components from the scripts to avoid the long cold start times?