Practicing the concept of IaC using Terraform
IaC is a concept and approach to managing GCP resources using code. The term infrastructure here means all GCP resources such as BigQuery datasets, GCS buckets, IAM, and all other resources that we've learned about throughout the book.Â
When we practice all the exercises, we create resources using the GCP console user interface (UI) or the gcloud
command. After learning how projects and resources can be very much within an organization, imagine someone needs to do that manually one by one using the UI. With an IaC approach, we will use code to provision the resources. There are many software options for doing this, and one of the most commonly used is Terraform.
Terraform is an open source IaC software tool. You, as the developer, declare which resources your organization needs in the Terraform scripts. The scripts can be run on any machine, from your local laptop, Cloud Shell, or VM. Note that you don't need to install...