terraform

 Terraform - Hashicorp Terraform is an Infrastructure as code (IaC) tool that lets you provision and manage cloud infrastructure. 

Terraform provides plugins called providers that lets you interact with cloud providers and other APIs. 

It is easy to use than clicking button in UI...


step1 - install SDK Quickstart: Install the Google Cloud CLI  |  Google Cloud CLI Documentation


step2 - Install and configure Terraform  |  Google Cloud

in real - always good practice to open local cloud shell -- and run the follwing command to interact with google cloud using CLI which is command line interface not using UI (console.google.cloud)

ste 3 - Authentication for Terraform  |  Google Cloud

open google cloud SDK shell on your machine, run tis comand --> gcloud auth application-default login.






oprn terminal...
1. gcloud init
2. select project

Terraform provider for Google Cloud

The Google Cloud provider is used to configure your Google Cloud infrastructure.A typical provider configuration will look something like:

provider "google" {
  project     = "my-project-id"
  region      = "us-central1"
}


Previous Post Next Post