# Terraform on Google Cloud documentation

[Read product documentation](https://docs.cloud.google.com/docs/terraform/terraform-overview.md.txt)
Learn how to use Terraform to reliably provision infrastructure on Google Cloud.
[Learn more](https://docs.cloud.google.com/docs/terraform/terraform-overview.md.txt)

## Documentation resources

Find quickstarts and guides, review key references, and get help with common issues.

### Get started

- Quickstart

  [Create a VM instance using Terraform](https://docs.cloud.google.com/docs/terraform/create-vm-instance.md.txt)

- Reference

  [Basic Terraform commands](https://docs.cloud.google.com/docs/terraform/basic-commands.md.txt)

- Tutorial

  [Store Terraform state](https://docs.cloud.google.com/docs/terraform/resource-management/store-state.md.txt)

- Tutorial

  [HashiCorp tutorials](https://learn.hashicorp.com/collections/terraform/gcp-get-started)

- Reference

  [Google Cloud provider](https://registry.terraform.io/providers/hashicorp/google/latest/docs)

### Learn more

- Best practice

  [Terraform best practices](https://docs.cloud.google.com/docs/terraform/best-practices-for-terraform)

- Conceptual guide

  [Understanding APIs and Terraform](https://docs.cloud.google.com/docs/terraform/understanding-apis-and-terraform.md.txt)

- Tutorial

  [Manage infrastructure as code](https://docs.cloud.google.com/architecture/managing-infrastructure-as-code)

- Tutorial

  [Deploy a basic Flask web server by using Terraform](https://docs.cloud.google.com/docs/terraform/deploy-flask-web-server.md.txt)

- Reference

  [Get support for Terraform issues](https://docs.cloud.google.com/docs/terraform/getting-support.md.txt)

### Use tools

- Tutorial

  [Export resources into Terraform](https://docs.cloud.google.com/docs/terraform/resource-management/export.md.txt)

- Tutorial

  [Import resources into Terraform state](https://docs.cloud.google.com/docs/terraform/resource-management/import.md.txt)

- Tutorial

  [Create a configuration with Service Catalog](https://docs.cloud.google.com/service-catalog/docs/terraform-configuration.md.txt)

- Technical

  [Use policy validation](https://docs.cloud.google.com/docs/terraform/policy-validation.md.txt)

- Managed service

  [Deploy infrastructure using Infrastructure Manager](https://docs.cloud.google.com/infrastructure-manager/docs/overview.md.txt)

## Related resources

Training and tutorials Code samples Explore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training Training and tutorials

### [Learn Terraform fundamentals](https://www.cloudskillsboost.google/focuses/1208?parent=catalog)


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


Training Training and tutorials

### [Learn how to automate Infrastructure on Google Cloud with Terraform](https://www.cloudskillsboost.google/focuses/15841?parent=catalog)


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


Training Training and tutorials

### [Learn how to build Cloud Infrastructure with Terraform](https://www.cloudskillsboost.google/focuses/17763?parent=catalog)


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


Training Training and tutorials

### [Learn about managing state](https://www.cloudskillsboost.google/focuses/15845?parent=catalog)


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


Training Training and tutorials

### [Learn to use Terraform modules](https://www.cloudskillsboost.google/focuses/15836?parent=catalog)


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](https://www.cloudskillsboost.google/focuses/33968?parent=catalog)


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


Code sample Code Samples

### [Terraform resource samples](https://docs.cloud.google.com/docs/samples.md.txt?language=terraform)


Find samples to build your infrastructure.


Code sample Code Samples

### [Blueprints](https://docs.cloud.google.com/docs/terraform/blueprints/terraform-blueprints.md.txt)


Find deployable, reusable Terraform modules.


## Related videos