How do I setup a network peering connection from multiple GCP projects to the same MongoDB cluster

0 votes
I have 3 projects in Google Cloud Platform. All have the default VPC Network, subnets etc. I have successfully peered a single project with a MongoDB Atlas cluster. However if I want to peer a second project it is not possible as there are overlapping subnet IP address ranges, since they are all created with the same default values.

What options do I have?

Can I use a Shared VPC network for all three GCP project and peer that with MongoDB Atlas?
Apr 11, 2022 in GCP by Rahul
• 3,380 points
1,301 views

1 answer to this question.

0 votes
If you have a project and want to peer one more with the same network and subnet values, its impossible as per your requirement can create a new VPC that doesn't overlap. To create a new VPC go to the VPC Networks page in the Google Cloud Console > Create VPC Network > Enter a name for that network > Choose Custom for the subnet creation mode > New subnet > Providing a name of the subnet > region > IP address range > If you want to create a secondary range for the subnet click on Create secondary IP range. > You can choose whether to enable Private Cloud Access for the subnet when you create it for later by editing it > Click Done > To add more subnets click on Add subnet and repeat the previous steps.> Choose dynamic routing mode for your VPC network. You can choose whether the  network has an MTU of 1460 (default) or 1500.
answered Apr 11, 2022 by Korak
• 5,820 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How can i grant access to a GCP project for a large scale multiple users at once?

gcloud auth to service accounts is allowed. ...READ MORE

answered Oct 16, 2019 in GCP by Sirajul
• 59,230 points
1,315 views
0 votes
1 answer

How do i delete a RAM disk from my instance on GCP?

You can unmount a tmpfs RAM disk just like ...READ MORE

answered Oct 22, 2019 in GCP by Sirajul
• 59,230 points
1,005 views
0 votes
1 answer
0 votes
1 answer

How do I transfer files to a windows instance on GCP?

You could probably use Windows RDP client for ...READ MORE

answered Nov 8, 2019 in GCP by Sirajul
• 59,230 points
2,813 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Google cloud: How to list all service-accounts from all Projects in GCP

Your code sample suggests you want the ...READ MORE

answered Mar 14, 2022 in GCP by Korak
• 5,820 points
4,027 views
0 votes
1 answer

Why do I need to use a security solution like Centrify on GCP?

The main benefit is that access can ...READ MORE

answered Mar 17, 2022 in GCP by Korak
• 5,820 points
488 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP