I have several MongoDB clusters in Atlas with Network Peering set up and successfully connected all Cloud Run services through VPC accessors. When creating a Compute Engine instance through the web UI, it does not let me choose a VPC so I am wondering how can I connect the VM to Atlas with network peering?
Asked
Active
Viewed 841 times
1
-
Compute Engine does not need a VPC connector. The VMs already live in the VPC. – Puteri Feb 12 '22 at 17:20
-
Simply connect to them from your app – Puteri Feb 12 '22 at 17:31
-
1Choose the correct VPC, and that's all. the serverless VPC connector is for bridging the serverless world managed by Google and your own VPC – guillaume blaquiere Feb 12 '22 at 19:49
1 Answers
0
To perform VPC peering you requires the next steps:
-Have a paid subscription to Mongo Atlas
-Create a peering between Mongo Atlas and your project
-Create a serverless VPC connector and add it to your App Engine to allow it to reach the private IP on the VPC and peering attached to the VPC, like your Mongo Atlas DB.

Marc Pons
- 79
- 4