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.
Start your proof of concept with $300 in free credit
-
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.
Get started
-
Tutorial
-
Reference
-
Tutorial
-
Tutorial
-
Reference
Learn more
-
Best practice
-
Tutorial
-
Reference
-
Tutorial
-
Tutorial
-
Tutorial
-
Technical
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
Learn about managing state
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
Learn to use policy validation
In this lab, you learn how to enforce policies on Terraform configurations.
code sample
Code Samples
Resource samples
Find samples to build your infrastructure.
code sample
Code Samples
Blueprints
Find deployable, reusable Terraform modules.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-03 UTC."],[[["This page provides comprehensive documentation on using Terraform to provision and manage infrastructure on Google Cloud, including tutorials, references, and best practices."],["You can get started with Terraform by following tutorials on running a web server, storing state in Cloud Storage, and using basic commands."],["The documentation covers advanced topics such as managing infrastructure as code with GitOps, exporting and importing resources, and using policy validation for compliance."],["Resources include self-paced training modules on various Terraform topics, as well as code samples and reusable Terraform modules available on GitHub."],["The documentation provides resources to obtain support for Terraform, through community resources and other support channels."]]],[]]