Heya, im looking for advice to connect a GCP database to Prisma. I understand the concept of passing the postgresql uri to the env, but not sure how to get the correct connection details out of GCP. So if you could point me in the right direction, that would be appreciated.
(If it helps, im using terraform - well learning it - and latest prisma version)
r
Ryan
02/23/2021, 1:07 PM
@Jonathan Stevens 👋
You could try this doc and get your host IP. The username is
postgres
by default and the password should be there with you if you had entered that manually during setup.
p
Pranav Sathyanarayanan
02/23/2021, 11:13 PM
@Jonathan Stevens depends on your environment too... are you running on GCE, GKE, Cloud Run, or App Engine? We use Cloud Run connected to a Prisma database and it's quite simple, can help further once we know the env.