Cannot connect Federated DB over Private Endpoint connection

We have AWS endpoints configured for “Serverless instances” And we also configured the same endpoints as “Federated Database Instance” endpoints. (there is only 1 db in this project.)

We can connect via the Serverless Instance configuration:

root@ip-10-118-248-118:~# mongosh "mongodb+srv://" --apiVersion 1 --username <user-name>
Enter password: ****************
Current Mongosh Log ID:  <snip>
Connecting to:          mongodb+srv://<credentials>
Using MongoDB:          7.2.0 (API Version 1)
Using Mongosh:          2.1.4
mongosh 2.1.5 is available for download:

For mongosh info see:

Atlas test> exit

but the same host cannot connect using the “federated” connection string:

it fails and returns:

MongoServerSelectionError: read ECONNRESET. It looks like this is a MongoDB Atlas cluster. Please ensure that your Network Access List allows connections from your IP.

The IP’s being used are the same and the IPs have been added to the allow list.

we’ve checked all of the “troubleshooting steps” and we can port scan the DNS name and it shows that port 27017 is open and responding.

We are testing the connection at the command line as:
mongosh “mongodb://” --tls --username

I have also tried including the port # and DB name on the command I get the same error
mongosh “mongodb://” --tls

Can you please explain how you configured the same endpoints as “Federated Database Instance” endpoints?

Thanks for the response. My boss decided to just buy support for the project. So I have opened a support case where hopefully they can look into the configurations, etc.

Thanks for your help

1 Like

It Seems you can NOT use the same endpoint for both serverless AND federated, you have to use 2 different endpoints.

and I won’t go into WHY does the UI let and even suggest that you DO use a single endpoint…

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