project = "YOUR_GCP_PROJECT_ID"
credentials_file = "YOUR_KEYFILE.json"
cidrs = [ "10.0.0.0/16", "10.1.0.0/16" ]
region = "YOUR_GCP_ZONE"
machine_types = {
dev = "f1-micro"
test = "n1-highcpu-32"
prod = "n1-highcpu-32"
}
ssh_user = "YOUR_SSH_USER"
terraform init
terraform plan
terraform apply
terraform refresh
terraform show
terraform destroy
Download from https://www.terraform.io/downloads.html
Ensure, what /usr/local/bin is in the PATH
echo $PATH
mv ~/Downloads/terraform /usr/local/bin/
terraform -help
terraform -help plan
terraform init
terraform plan
terraform apply
terraform plan
terraform apply
terraform show
terraform show
terraform destroy
terraform show
terraform plan
terraform init
terraform plan
terraform taint google_compute_instance.vm_instance
terraform apply
terraform.tfvars
variables.tf