Hello,
Thank you for your response. I will answer your questions:
- I am able to successfully connect to this cluster from Mongo shell locally and even from the AWS EC2 instance with the same VPC/subnet/security group settings my application uses to connect.
- Connection string: mongodb+srv://:@crawlertestcluster.ihdih.mongodb.net/?retryWrites=true&w=majority
- No firewall that I’m aware of, as the instance that hosts the application is able to connect to the cluster.
- In Atlas I have the Security Group explicitly included in the network access whitelist, as well as the 0.0.0.0/0 IP address (everyone).
- The database does exist: sample_airbnb
- Since this is in the testing phase, my individual attempts to connect are the only ones for the cluster in question (ie no more than 10 connections at a time).
- I am using MongoJava-sync-driver v4.7.2
- I am not using privatelink or VPC Peering for these tests. I think it would be helpful to note that the application can connect successfully when using either of those, but fails with the above error when it doesn’t use PrivateLink or VPC Peering to establish connection.
I hope these details help.
Thank you.