Terraform on Google Cloud documentation
Learn how to use Terraform to reliably provision infrastructure on Google Cloud. Learn more
Start your next project with $300 in free credit
Build and test a proof of concept with the free trial credits and free monthly usage of 20+ products.
Keep exploring with 20+ always-free products
Access 20+ free products for common use cases, including AI APIs, VMs, data warehouses, and more.
Documentation resources
Get started
-
Tutorial
Get started with Terraform
Run a simple web server on Compute Engine by using Terraform to provision the resources.
-
Reference
Basic Terraform commands
Reference of basic Terraform commands.
-
Tutorial
Store Terraform state
Store Terraform state in a Cloud Storage bucket.
-
Tutorial
HashiCorp tutorials
Build, change, and destroy Google Cloud infrastructure using Terraform.
-
Reference
Google Cloud provider
Use Hashicorp's reference pages.
Learn more
-
Best practice
Terraform best practices
Provides guidelines and recommendations for effective development with Terraform across multiple team members and work streams.
-
Tutorial
Manage infrastructure as code
Shows how to manage infrastructure as code with Terraform and Cloud Build using GitOps methodology.
-
Reference
Get support for Terraform issues
Provides a list of community resources.
Use tools
-
Tutorial
Export resources into Terraform
Generate Terraform code for Google Cloud resources.
-
Tutorial
Import resources into Terraform state
Bring Google Cloud resources into Terraform management.
-
Tutorial
Create a configuration with Service Catalog
Control distribution of Terraform configurations.
-
Technical
Use policy validation
Enforce policy compliance as part of an infrastructure CI/CD pipeline.