Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step by step guide to deploy on Google Cloud with Cloud SQL #2

Open
pip8786 opened this issue Sep 29, 2022 · 4 comments
Open

Step by step guide to deploy on Google Cloud with Cloud SQL #2

pip8786 opened this issue Sep 29, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@pip8786
Copy link

pip8786 commented Sep 29, 2022

Is your feature request related to a problem? Please describe.

I haven't worked with terraform before. However, I'd like to set up PGBouncer in front of my Google Cloud SQL database since it's used by many different Cloud Functions and a Vercel/NextJS web app (which is also a serverless solution). I've been running out of connections on my database recently and started looking for solutions and this seems to be the recommended one. Note that I'm using Prisma to connect to the database, but I don't think that affects this request.

Describe the solution you'd like

I think a step by step guide on how to set this up on Google Cloud infrastructure would be really helpful in getting someone like me going.

Describe alternatives you've considered

Alternatively, I could try to infer how to set it up from the existing documentation and finding information on how to use terraform with Google.

@pip8786 pip8786 added the enhancement New feature or request label Sep 29, 2022
@andreyluchianic
Copy link
Contributor

@pip8786 almost same infrastructure in my case Next, Vercel, Cloud Run but i know terraform so if @christippett can help me setup it i can write step by step docs

@pip8786
Copy link
Author

pip8786 commented Feb 17, 2023

@andreyluchianic That sounds great. I'd think all you'd have to do is fork this repository and add a *.md file in a pull request. I guess the other issue is this repository is pretty old now and I had to make a lot of updates to it to get it to even run: https://github.com/social-cascade/terraform-google-cloud-sql-pgbouncer. I'm not sure that it's maintained anymore so starting a fresh fork and just working on that may be best?

@andreyluchianic
Copy link
Contributor

andreyluchianic commented Feb 20, 2023

actually @pip8786 i got this working with example default configuration,
the only problem was #7 and i was able to connect to my database trough pgbouncer

not used admin account tho
db is old - PostgreSQL 11.16

@andreyluchianic
Copy link
Contributor

andreyluchianic commented Feb 20, 2023

i have 10 databases for each CMS,
looks promising
Screenshot 2023-02-20 at 17 18 54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants