Hi Team,
Is it best practice to connect to a MongoDB atlas cluster via VPC peering? Would this remove our need for static IPs to connect to MongoDB?
Hi Team,
Is it best practice to connect to a MongoDB atlas cluster via VPC peering? Would this remove our need for static IPs to connect to MongoDB?
Hey @itajenglish ,
VPC Peering is definitely a better practice and cheaper (it’s free on AWS) than using a pool of static IPs. Check out our guide on how to set up VPC peering
Does this mean I have to recreate all my clusters to turn off static IP’s? Do I also need to pick a custom subnet in order to use VPC peering?
Yes, you need to migrate your current workload to a new cluster without static IPs. But no worries, it’s quite easy. (Still, you need to plan this migration because your service will not be available until it’s up on the other cluster, and your database and domain have been migrated).
Here is the migration process to follow:
new-production
.I’ve recorded this video to make it clear. Let me know
Awesome thanks @rophilogene super helpful!