Connecting to Endpoints
Use the following structure to construct the string that you need to connect to your cluster or instance using the mongo
shell:
mongo
shell examples
--ssl \
--host sample-cluster.corcjozrlsfc.us-east-1.docdb.amazonaws.com:27017 \
--username UserName \
--password Password
Connect to an instance:
Connecting Using a Connection String
Use the following structure to construct the connection string that you need to connect to your cluster or instance.
Connect to a cluster:
Connect to an instance:
mongodb://UserName:Password@sample-cluster-instance.cluster-corlsfccjozr.us-east-1.docdb.amazonaws.com:27017?replicaSet=rs0&ssl_ca_certs=rds-combined-ca-bundle.pem