Mongodb Atlas - IP Addresses

So one of the advantages of MongoDB atlas is that we lock down the network and only allow access via IP addresses that have been assigned to the service.

I am wondering how does this work with Fly.io and multi-regions as we are only given the shared IP address.

What IP addresses do with give to MongoDB

Currently, we don’t support static egress IPs.

So your best option is to proxy all your database traffic through a service that allows you to have static egress IPs. I’ve seen a few people use Digital Ocean Droplets on the forum.

your fly app → digital ocean droplet → mongodb atlas

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.