Exploring GCP With Terraform: Adding Terragrunt

Finally, this is the last step in making the Terraform project manageable. I’ll add Terragrunt to the project. Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules. It’s an excellent tool for making your Terraform code DRY and reusable. I’m starting with the same project as in the previous post. The current state of code is available here in the branch add_modules....

September 17, 2023 · 6 min · Robert Nemet

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