Hi Noel,
Here’s a github repo with a sample deployment.
It does the following.
- Deploy’s a VPC and 2 private subnets.
- Deploy’s an Aurora Serverless postgres instance.
- Create’s a lambda which runs schema migrations using the DataAPI, which does not require the lambda to be inside a VPC to access the RDS instance. However, it is possible to deploy a lambda into the VPC and connect to the DB directly just like you would connect to a traditional SQL DB.