Scopri come utilizzare Terraform per eseguire il provisioning dell'infrastruttura in modo affidabile su Google Cloud.
Scopri di piรน
Inizia a creare e a eseguire il deployment su Google Cloud con una
prova gratuita.
Inizia la tua proof of concept con 300 $ di credito gratuito
-
Accedi a Gemini 2.0 Flash Thinking
-
Utilizzo mensile gratuito dei prodotti piรน apprezzati, tra cui API di AI e BigQuery
-
Nessun addebito automatico, nessun impegno
Continua a esplorare con oltre 20 prodotti sempre gratis
Accedi a oltre 20 prodotti gratuiti per casi d'uso comuni, tra cui API AI, VM, data warehouse e altro ancora.
Inizia
-
Tutorial
-
Riferimento
-
Tutorial
-
Tutorial
-
Riferimento
Scopri di piรน
-
Best practice
-
Guida concettuale
-
Tutorial
-
Riferimento
-
Tutorial
-
Tutorial
-
Tutorial
-
Tecnico
Formazione
Formazione e tutorial
In questo lab, installi Terraform e crei un'istanza VM utilizzando Terraform.
Formazione
Formazione e tutorial
In questo lab scriverai l'infrastruttura come codice con Terraform.
Formazione
Formazione e tutorial
In questo lab imparerai a descrivere e avviare le risorse cloud con Terraform.
Formazione
Formazione e tutorial
Scopri di piรน sulla gestione dello stato
In questo lab, imparerai ad archiviare lo stato di Terraform in Google Cloud Storage.
Formazione
Formazione e tutorial
In questo lab imparerai in che modo i moduli possono risolvere i problemi di complessitร , duplicazione e riutilizzo del codice.
Formazione
Formazione e tutorial
Scopri come utilizzare la convalida delle norme
In questo lab imparerai a applicare i criteri alle configurazioni Terraform.
Esempio di codice
Esempi di codice
Esempi di risorse
Trova esempi per creare la tua infrastruttura.
Esempio di codice
Esempi di codice
Progetti
Trova moduli Terraform riutilizzabili e implementabili.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java รจ un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-09-02 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema รจ stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-02 UTC."],[[["\u003cp\u003eThis page provides comprehensive documentation on using Terraform to provision and manage infrastructure on Google Cloud, including tutorials, references, and best practices.\u003c/p\u003e\n"],["\u003cp\u003eYou can get started with Terraform by following tutorials on running a web server, storing state in Cloud Storage, and using basic commands.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers advanced topics such as managing infrastructure as code with GitOps, exporting and importing resources, and using policy validation for compliance.\u003c/p\u003e\n"],["\u003cp\u003eResources include self-paced training modules on various Terraform topics, as well as code samples and reusable Terraform modules available on GitHub.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides resources to obtain support for Terraform, through community resources and other support channels.\u003c/p\u003e\n"]]],[],null,["# Terraform on Google Cloud documentation\n=======================================\n\n[Read product documentation](/docs/terraform/terraform-overview)\nLearn how to use Terraform to reliably provision infrastructure on Google Cloud.\n[Learn more](/docs/terraform/terraform-overview)\n\n\u003cbr /\u003e\n\nStart building and deploying on Google Cloud with a [free trial](https://console.cloud.google.com/freetrial). \n\n\u003cbr /\u003e\n\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nfollow_the_signs\n\n### Get started\n\n- Tutorial \n\n\n [Get started with Terraform](/docs/terraform/get-started-with-terraform)\n\n- Reference \n\n\n [Basic Terraform commands](/docs/terraform/basic-commands)\n\n- Tutorial \n\n\n [Store Terraform state](/docs/terraform/resource-management/store-state)\n\n- Tutorial \n\n\n [HashiCorp tutorials](https://learn.hashicorp.com/collections/terraform/gcp-get-started)\n\n- Reference \n\n\n [Google Cloud provider](https://registry.terraform.io/providers/hashicorp/google/latest/docs)\n\nemoji_objects\n\n### Learn more\n\n- Best practice \n\n\n [Terraform best practices](/docs/terraform/best-practices-for-terraform)\n\n- Conceptual guide \n\n\n [Understanding APIs and Terraform](/docs/terraform/understanding-apis-and-terraform)\n\n- Tutorial \n\n\n [Manage infrastructure as code](/architecture/managing-infrastructure-as-code)\n\n- Reference \n\n\n [Get support for Terraform issues](/docs/terraform/getting-support)\n\nformat_list_numbered\n\n### Use tools\n\n- Tutorial \n\n\n [Export resources into Terraform](/docs/terraform/resource-management/export)\n\n- Tutorial \n\n\n [Import resources into Terraform state](/docs/terraform/resource-management/import)\n\n- Tutorial \n\n\n [Create a configuration with Service Catalog](/service-catalog/docs/terraform-configuration)\n\n- Technical \n\n\n [Use policy validation](/docs/terraform/policy-validation)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Learn Terraform fundamentals\n\n\nIn this lab, you install Terraform and create a VM instance using Terraform.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/1208?parent=catalog) \nTraining \nTraining and tutorials\n\n### Learn how to automate Infrastructure on Google Cloud with Terraform\n\n\nIn this lab, you write infrastructure as code with Terraform.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/15841?parent=catalog) \nTraining \nTraining and tutorials\n\n### Learn how to build Cloud Infrastructure with Terraform\n\n\nIn this lab, you learn how to describe and launch cloud resources with Terraform.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/17763?parent=catalog) \nTraining \nTraining and tutorials\n\n### Learn about managing state\n\n\nIn this lab, you learn how to store Terraform state in Google Cloud Storage.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/15845?parent=catalog) \nTraining \nTraining and tutorials\n\n### Learn to use Terraform modules\n\n\nIn this lab, you learn how modules can address problems of code complexity, duplication, and reuse.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/15836?parent=catalog) \nTraining \nTraining and tutorials\n\n### Learn to use policy validation\n\n\nIn this lab, you learn how to enforce policies on Terraform configurations.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/33968?parent=catalog) \nCode sample \nCode Samples\n\n### Resource samples\n\n\nFind samples to build your infrastructure.\n\n\n[Open GitHub](/docs/terraform/samples) \nCode sample \nCode Samples\n\n### Blueprints\n\n\nFind deployable, reusable Terraform modules.\n\n\n[Open GitHub](/docs/terraform/blueprints/terraform-blueprints)\n\nRelated videos\n--------------"]]