Skip to content

connect to amazon rds over ssl in sequelize #9712

@dagda1

Description

@dagda1

I am trying to connect to a mysql amazon RDS connection over ssl from sequelize:

my config looks like this:

      "production": {
        "username": "aa",
        "password": "aa",
        "database": "db",
        "host": "hots.eu-west-1.rds.amazonaws.com",
        "dialect": "mysql",
        "port": "3306",
        "logging": true,
        "pool": { "maxConnections": 5, "maxIdleTime": 30 },
        "language": "en",
        "ssl": true,
        "dialectOptions": { "ssl": true }
      }

I am getting a SequelizeConnectionError: connect ETIMEDOUT error.

Do I have to reference the ca in the dialiectOptions or is ssl: true enough?

Is there a way to get more logging as to what is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions