GCP With Terraform: Refactor with Modules

This post is the fourth part of the series about using Terraform to manage GCP resources. In the first part, I did a basic setup of the project: remote state file, state file encryption, a bucket creation. In the second part, I created VPC and subnets and added some basic firewall rules and VMs. In the third part, I added more VPC, subnets, firewall rules, and VMs. In this part, I will refactor the project to make it more manageable....

September 5, 2023 · 16 min · Robert Nemet

Exploring GCP With Terraform: VPC Firewall Rules, part 2

This post would be 3rd part of the series about exploring GCP with Terraform. In the previous part, I created VPC networks, subnets, and a few firewall rules. In this part, I will explore more firewall rules and their parameters. More precisely, I’ll set up three VPCs: back-office, services and storage. In VPC back_office, I’ll have two subnets; in others, I’ll have one subnet. For the sake of conversation, imagine that VMs in the back-office have to call VMs in services and storage....

August 28, 2023 · 13 min · Robert Nemet

Exploring GCP With Terraform: VPCs, Firewall Rules And VMs

This post will continue my previous post Exploring GCP With Terraform: Setting Up The Environment And Project. In this post, I’ll: Create VPC with Terraform Create subnets/firewall rules Create VMs in the VPC How to access to VMs from outside and inside the VPC Info Also, I’ll mention how to use gcloud to fetch information about created resources. At the end, I’ll mention two useful Terraform CLI commands. And why I’m structuring the project as I do....

August 20, 2023 · 11 min · Robert Nemet