In a single Google Cloud Project, I have a MongoDB instance, and a cloud function that interacts with it.
For obvious reasons, I would like to avoid exposint the MongoDB server to the outer internet.
If the cloud function was on a VM, I would just create a firewall rule to open the MongoDB port to this VM IP address only.
How can I do that for a Cloud Function?