Now that we have all the requirements installed, we are going to create our first resource in order to help us to understand how Terraform works and how powerful it is. Create a folder called implementing-modern-devops somewhere in your computer and add a file called resources.tf with the following content:
provider "google" { credentials = "${file("xxx.json")}" project = "implementing-modern-devops" region = "europe-west1-b"}resource "google_compute_instance" "my-first-instance" {}
As you can see, the preceding snipped is very similar to JSON but it is actually called HCL: HashiCorp Configuration Language. Let's explain what the code is doing.
The first section is where we configure our credentials. As you can see, Terraform ...