I am getting the above error when trying to connect to a cloud sql instance that is sitting in another project. This then also throws the following error in the logs:
ENOENT /cloudsql/${process.env.INSTANCE_CONNECTION_NAME}/.s.PGSQL.5432
The connections in Cloud Run have been set up and points to the instance in the other project:
Additionally the service account used for this deployment has Cloud SQL Client permissions in both its own project and the one where the SQL instance is.
Finally the environmental variable is also set in cloud run and has the correct instance connection name.
I originally tried to get this working on an existing deployement with no luck and then also deployed it from scratch, but the same errors keep occuring.
The application is node.js based with sequelize as ORM.
Any help would be much appreciated.