How to create a VPC in GCP Cloud using Terraform code

0 votes

Hi Guys,

I am new to Terraform. I want to create a VPC in GCP Cloud using Terraform code. Hw can I do that?

Sep 13, 2020 in Terraform by akhtar
• 38,260 points
• 2,894 views

1 answer to this question.

0 votes

Hi@akhtar,

You can create your own VPC in the GCP cloud using Terraform code. Terraform has a resource google_compute_network. This resource is used to create VPC from Terraform.

resource "google_compute_network" "custom-test" {
  provider