Jürgen Brandstetter
Jürgen Brandstetter

Reputation: 7354

How to connect CloudSQL Postgres to Hasura Cloud?

  1. I started a new Hasura-Cloud project and a new CloudSQL project.
  2. I have added the Hasura-Cloud ip-address to the allowed connection addresses on cloudSQL

I have tried the following address but I'm always getting "database not found": postgres://<db--user>:<db-password>@<db-ip-address>:5432/cloudsql/<connection-name>/<db-name>

Upvotes: 1

Views: 105

Answers (1)

J&#252;rgen Brandstetter
J&#252;rgen Brandstetter

Reputation: 7354

After contacting the Hasura team we found the solution to the correct URL

The correct URL is: postgres://postgres:<db-password>@<db-id-address>:5432/postgres

Make sure you add the Hasura Cloud IP to the allowed IP addresses on cloudSQL, otherwise the Hasua server get's blocked

Upvotes: 2

Related Questions