Practicing the concept of IaC using Terraform
IaC is the process of provisioning and managing resources using code. In our GCP case, the resources can be the GCP project, BigQuery datasets, GCS buckets, IAM, and all other resources that we’ve learned about throughout this book.
So far, we’ve created our resources using the GCP console’s user interface (UI) or the gcloud
command. Imagine that you need to do that manually one by one using the UI for hundreds to thousands of objects throughout a large organization. That can be very painful – not only from a provisioning point of view but also in terms of managing it.
The common issues without the IaC approach are missing consistency, such as naming conventions, forgetting to configure some parameters, such as location, and losing track of resources that have been created.
With an IaC approach, we can use code to provision our resources. The advantage of using code is that you can implement software...