- Newest
- Most votes
- Most comments
When you say "locally" do you mean trying to connect to DocumentDB from your laptop?
Refer to the instructions in this document - https://docs.aws.amazon.com/documentdb/latest/developerguide/connect-from-outside-a-vpc.html
I'd like to access nodejs in the local environment
Should I access the db by accessing the ssh with the code?
Hello, I see that you are using replica set mode above. If you are using SSH tunneling since connection is local, please use the cluster endpoint only, and not replica set.
As per this document, "When using an SSH tunnel, we recommend that you connect to your cluster using the cluster endpoint and do not attempt to connect in replica set mode (i.e., specifying replicaSet=rs0 in your connection string) as it will result in an error."
Relevant content
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Just to make sure, have you created a SSH tunnel from the machine that you are running NodeJS to an EC2 machine in same VPC as DocumentDB? If not, you will have to do this first