AWS peering to my first cluster from atlas

Hello,

I’m completely new to mondb atlas. I use an aws eks cluster to connect to this mongodb cluster (dedicatec) M10) and I have a crucial question … What is the endpoint wich I have to use to connect to my cluster ??

I have setup a peering connection between my vpc and mongodb vpc, created the route tables, and I have tested to reach each nodes of the cluster separatly (tcp test on 27017 port).

But where could I find the global connection string to connect to the cluster using this peering ?

# for i in $(seq 0 2); do nc -vw2 mycluster-shard-00-0$i.2gbel.mongodb.net 27017 ; done
mycluster-shard-00-00.2gbel.mongodb.net (192.168.xx.xx:27017) open
mycluster-shard-00-01.2gbel.mongodb.net (192.168.xx.xx:27017) open
mycluster-shard-00-02.2gbel.mongodb.net (192.168.xx.xx:27017) open

Thanks for your help.

Hey @Reza_ISSANY,

Welcome to the MongoDB Community Forums! :leaves:

You can get the connection string by clicking on ‘Connect’ in your Atlas account while you were setting up the peering connection. You can read more from the documentation: Configure an Atlas Network Peering Connection

Other useful links that you can go through:
Which connection string my application uses
MongoDB Atlas on AWS

Please feel free to reach out for anything else as well.

Regards,
Satyam

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