What is the format for database connection URI string for a GCP cloudsql postgres database. The instance only has private access and the connection URI string is needed for a workload running on GKE in the same region. Can't find anything concrete.
3
-
2Have you tried this format `postgres://<user\>:<password\>@<ip-address\>:<port\>/<database-name\>`?Roopa M– Roopa M2024-08-22 18:17:11 +00:00Commented Aug 22, 2024 at 18:17
-
Have you managed to check my above comment?Roopa M– Roopa M2024-08-28 07:19:48 +00:00Commented Aug 28, 2024 at 7:19
-
I shared my comment as an answer so that it will help others who are facing the same issue. Can you have a look at it?Roopa M– Roopa M2024-09-02 12:45:09 +00:00Commented Sep 2, 2024 at 12:45
Add a comment
|
1 Answer
Database connection URI string for Cloud Sql postgres database would be as follows
postgres://<user\\\>:<password\\\>@<ip-address\\\>:<port\\\>/<database-name\\\>.
Also you can check this document and this thread