Terraform from Zero on GCP – Part 3: Creating the First Project

If you landed here out of nowhere and want to see what happened before, check out the following post: Terraform from Zero on GCP – Part 2: Setting up the Environment Now that we’ve prepared the ground, it’s time to create the first project. In this post, we’ll: Create the basic structure of a Terraform project Initialize Terraform (terraform init) Create and apply a real resource on GCP (a **Cloud Storage bucket**) File Structure Create a folder for your project and add the following files: ...

23 Apr 2025 · 3 min · 474 words · Logan D. Merazzi

Terraform from Zero on GCP – Part 2: Setting up the Environment

And let’s move on to the second post in the series! If you want to see what we discussed in the first post of the series where I talk about the objective and how to configure the local environment, I recommend starting here: Terraform: Taking the Next Step – Building Infrastructure from Scratch on GCP What we’re going to do today: Create a project on GCP I'm not going to create a whole organization here, I'm going to create simple projects in a personal account, but let's not consider this as best practices in a corporate environment, ok? Create a Service Account with specific permissions Generate the authentication key (JSON) Configure the environment variable for Terraform to access GCP 1. Creating the project on GCP Access the [GCP Console](https://console.cloud.google.com/) Click on the project selector (top left corner) > **New Project** ...

22 Apr 2025 · 2 min · 268 words · Logan D. Merazzi

Terraform: Taking the Next Step – Building Infrastructure from Scratch on GCP

Disclaimer Since this is a series of posts, I’ll leave the links here as we progress through each topic discussed. Introduction (This post) [Setting up the Environment](https://blog.merazzi.com.br/en/terraform-from-zero-gcp-part-2-setting-up-environment/) Introduction This is the second post where I talk about using Terraform to create infrastructure using code (the famous IaC). If you didn’t see the first post (made in 2022!!), I recommend reading it to install and prepare the local environment (calm down… We’ll get to the cloud – I hope): ...

21 Apr 2025 · 2 min · 324 words · Logan D. Merazzi