Terraform on Google Cloud documentation
Learn how to use Terraform to reliably provision infrastructure on Google Cloud. Learn more
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
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.
Related resources
Related videos
New Way Now: Dunelm delivers style to homes securely with Google Cloud
*Featured in this video:* Gill Rutherford, Head of Cyber and Information Security for Dunelm *Summary:* As the UK’s leading home furnishing retailer, Dunelm’s customers trust it to craft shopping experiences that are as delightful as they are secure,
New Way Now: Almarai brings the dairy industry into a new era of operational excellence with Google
*Summary:* Dr. Faisal Al Nasser, head of enterprise and IT for Almarai, shares how Google Cloud is helping the world’s largest integrated dairy company drive growth, resilience, and agility. By migrating its enterprise resource planning (ERP) system
New Way Now: Broadcom connects and protects the digital world with the help of AI
𝗦𝘂𝗺𝗺𝗮𝗿𝘆: Rich Jardine, VP of Cloud Platform Engineering and Operations at Broadcom, discusses their unique partnership with Google Cloud, and how the global infrastructure technology leader is modernizing its infrastructure and building a scalable
New Way Now: Electronic Arts is powering up Ultimate Team infrastructure with Google Cloud
𝗦𝘂𝗺𝗺𝗮𝗿𝘆: Wilson Chan, senior principal architect at Electronic Arts (EA), shares how Google Cloud is helping the leading game developer bring its interactive live gaming experiences to the next level. EA pulled off a seamless migration of its global
New Way Now: Nuro is creating a safe path to a driverless future with Google Cloud
𝗦𝘂𝗺𝗺𝗮𝗿𝘆: Andrew Clare, Chief Technology Officer of Nuro, shares how the innovative robotics company is using Google Cloud to develop the Nuro Driver — its cutting-edge driverless autonomous technology. Leveraging Google Cloud, Nuro can utilize all of
When AI meets data: Stack Overflow and Gemini
Generative AI is only as good as its data. Join this session to explore the powerful synergy between Stack Overflow and Gemini and learn how they’re coming together to bring a new level of productivity through cutting-edge AI tools backed by accurate
Cloud Security Risks: Identify and Protect Against Threats
Hop on over Google Cloud Skills Boost to complete the hands-on labs - https://goo.gle/3Pf5QwL [Course 3 of 5, Google Cloud Cybersecurity Certificate]Delve into the key aspects of identity management and access control in cloud computing, including
Build global-scale apps with cloud databases and managed runtimes
Today’s consumers expect speed and service delivered through easy-to-use apps and personalized interactions. This has put pressure on companies and their development teams to either modernize existing applications or build new ones. But apps don’t
Extending support for App Engine bundled services: Part 2 (Module 22)
Serverless Migration Station is a Serverless Expeditions mini-series focused on helping developers modernize their applications running on a Google Cloud serverless compute platform. In Module 22, Google engineers Martin and Wesley continue the
Troubleshoot Dataproc Cluster Creation Errors
Have you experienced any failures while creating Dataproc clusters? Are you interested to learn how to troubleshoot Dataproc creation cluster errors? Check out this video where we provide a quick overview of the common issues that can lead to
Extending support for App Engine bundled services: Part 1 (Module 17)
Serverless Migration Station is a Serverless Expeditions mini-series, a set of videos focused on helping developers modernize their applications running on a Google Cloud serverless compute platform. In this Module 17 video, Google engineers Martin
Introducing CAMP (Cloud Application Modernization Program)
Website → https://goo.gle/3SirShC Whitepaper → https://goo.gle/3DKX4Sk Welcome to CAMP, the Cloud Application Modernization Program! In this video, Mahshad Haeri, a Global solutions manager with Google cloud, gives a quick overview of CAMP: a
Secure and reliable development with Go
In this Ask Me Anything (AMA) Session about making the end-to-end experience of developing with Go more secure and reliable. We cover dependency management and editor integrations (gopls), our package discovery site (pkg.go.dev), and Go’s built-in
NASA FDL + Google Cloud: Identifying Exoplanets — Finding Life (Cloud Next '19)
A presentation that will explain NASA FDL’s four step plan to finding extertierital life and their partnership with Google Cloud. The talk will go over, the four steps: Step 1: Finding Exoplanets Step 2: Measure the atmospheric qualities of
Go Cloud Functions
In this video, we introduce Go support on Google Cloud Functions and briefly walk through the two main function types: HTTP functions and background functions. Find out more about Google Cloud Functions → http://bit.ly/2sxtABL Subscribe to be