How to connect node.js running in zeit with postgresql?

Viewed 694

There is node.js code(builder @now/node) deployed to zeit. Now I want to connect it to PostgreSQL.
This seems to be a very common scenario, yet I can't find learning material that is good enough.
The problem is there are quite a few things to configure here:

  1. PostgreSQL instance. (I chose AWS RDS free teir)
  2. Security group's inbound connection should cover ips to which zeit is deployed
  3. zeit deployment should have the right certificate for establishing ssl connection

Is there something missing here? Is there a good instruction on how to achieve that?

1 Answers
Related