We currently use Netlify to run a NextJS site with heavy use of SSR. This is building on Netlify Functions, which to my understanding run as AWS Lambda functions.
We are about to migrate our backend to MongoDB Atlas, which conveniently can also run on AWS.
The best practice for network access control with MongoDB Atlas is to peer our VPC on AWS with that of Atlas, as we’ve been able to do successfully with other services we run. However as we deploy the NextJS site through Netlify, we don’t have access to the VPC where our SSR code is running as Lambda functions.
So the questions are:
- Do we even have a dedicated VPC for our own Lambda functions on Netlify?
- If so, can we get it peered with the MongoDB Atlas VPC?
- If the answer to any of these questions is “no”, what could be the next step, other than completely opening up the network with added security and performance risk, or just moving the site elsewhere?