I have a Serverless Framework project consisting of about 5 Lambdas/API Gateway. I also have a publicly accessible RDS database.
My end goal is to have the RDS instance behind a VPC so it is not publicly accessible. This would mean also having the Lambdas in the VPC as well.
I'm under the impression that I need an Internet Gateway/Nat Gateway in order to allow my Lambdas to connect to the internet. I've setup a VPC with public/private subnets, and have created route tables for the Internet/NAT Gateways, but I'm confused where this leaves the API Gateway that comes with the Serverless Framework?
Is this pattern of accessing non public AWS resources from Lambdas in Serverless Framework supported?