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

Exploring GCP With Terraform: Setting Up The Environment And Project

This topic is nothing new. There are many articles and tutorials on the internet about this. I’ll be setting up a Terraform project to explore GCP. I cover the basics of Terraform and GCP. Warning I replaced the real project ID with project-id in the following examples. You need to replace it with your project ID. Prerequisites Create GCP Project First, you must create a GCP account, then create a project and set up billing on that project....

August 16, 2023 · 14 min · Robert Nemet