Terraform on Google Cloud documentation

Learn how to use Terraform to reliably provision infrastructure on Google Cloud. Learn more

Start building and deploying on Google Cloud with a free trial.
  • Get access to Gemini 2.0 Flash Thinking
  • Free monthly usage of popular products, including AI APIs and BigQuery
  • No automatic charges, no commitment
View free product offers

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

Find quickstarts and guides, review key references, and get help with common issues.
Explore self-paced training from Google Cloud Skills Boost, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services.
training
Training and tutorials

In this lab, you install Terraform and create a VM instance using Terraform.

training
Training and tutorials

In this lab, you write infrastructure as code with Terraform.

training
Training and tutorials

In this lab, you learn how to describe and launch cloud resources with Terraform.

training
Training and tutorials

In this lab, you learn how to store Terraform state in Google Cloud Storage.

training
Training and tutorials

In this lab, you learn how modules can address problems of code complexity, duplication, and reuse.

training
Training and tutorials

In this lab, you learn how to enforce policies on Terraform configurations.

code sample
Code Samples

Find samples to build your infrastructure.

code sample
Code Samples

Find deployable, reusable Terraform modules.

Related videos