Live data from Hacker News

Terraform for Google Cloud

github.com

1–2 of 2 posts

Re: Terraform for Google Cloud

#2
Just leaving the link to my Terraform repo here. It's set up for various GCP services that I'm using in a project. Might be useful for some of you.

VPC Configuration: A new VPC is configured with the intent to utilize all services within a single VPC.

Compute Engine Setup: A compute engine is set up to read the Cloud SQL via a private IP, configured in another module. A startup-script.sh is included, which has code to establish SSH connection directly from the local machine.

Cloud Run Creation: A Cloud Run is created in version V2 with Direct VPC Connection to Cloud SQL.

Automated Cloud Build Mechanism: A mechanism is set where the cloud build is triggered automatically following the code push to the repository that builds the image.