What is Terraform with GCP?
Answer
GCP has a first-class Google Cloud Terraform provider (hashicorp/google) maintained jointly by HashiCorp and Google. It covers virtually all GCP resources: Compute Engine, GKE, Cloud Storage, Cloud SQL, BigQuery, IAM, and more. Key resources: google_compute_instance, google_container_cluster, google_storage_bucket. Authenticate via Application Default Credentials (ADC) or a service account key. Store Terraform state in a GCS bucket with state locking. GCP also provides Cloud Foundation Toolkit: opinionated, production-ready Terraform modules for common GCP patterns (VPC, GKE, project factory). Use google_project_service to enable APIs as part of infrastructure. GCP's Terraform provider also covers organization policy, billing, and monitoring resources for complete infrastructure management.