Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Issue: Could not connect to remote DocumentDB #3

Description

@Alon-Katz

Hey, I am trying to use this package which seems awesome but unfortunately I can't get it to work.
Can you please provide an example with parameters ?

Here's my not working example:

const sshCert = fs.readFileSync('./access-mongodb.pem').toString();
const sslCert = fs.readFileSync('./rds-combined-ca-bundle.pem').toString();

MONGOOSE.init({
    env: 'remote',
    makeTunnel: true,
    sslCA: sslCert,
    vpcTunnelEC2Username: "ec2-username",
    vpcTunnelEC2Host: "ec2-ip",
    vpcTunnelEC2Port: 22,
    vpcTunnelEC2PortLocal: 27017,
    vpcTunnelEC2PrivateKey: sshCert,
    documentdbClusterEndpoint: "dbname.identifier.us-east-1.docdb.amazonaws.com",
    documentdbClusterPort: 27017,
    documentdbClusterDbName: "dbname",
    documentdbClusterUsername: "mongo-username",
    documentdbClusterPassword: "mongo-password",
    documentdbEndpoint: "dbname.identifier.us-east-1.docdb.amazonaws.com",
    documentdbPort: 27017,
})

Anything seems wrong? I am getting

HTTPError: Error. Could not connect to remote DocumentDB through our EC2 ssh tunnel with Mongoose.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions