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

    1. --ssl \
    2. --host sample-cluster.corcjozrlsfc.us-east-1.docdb.amazonaws.com:27017 \
    3. --username UserName \
    4. --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:

      1. 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