Pelajari cara menggunakan Terraform untuk menyediakan infrastruktur secara andal di Google Cloud.
Pelajari lebih lanjut
Mulai bukti konsep Anda dengan kredit gratis senilai $300
-
Mendapatkan akses ke Gemini 2.0 Flash Thinking
-
Penggunaan bulanan gratis untuk produk populer, termasuk AI API dan BigQuery
-
Tidak ada biaya otomatis, tanpa komitmen
Terus jelajahi dengan lebih dari 20 produk yang selalu gratis
Akses 20+ produk gratis untuk kasus penggunaan umum, termasuk API AI, VM, data warehouse, dan lainnya.
Mulai
-
Tutorial
-
Referensi
-
Tutorial
-
Tutorial
-
Referensi
Pelajari lebih lanjut
-
Praktik terbaik
-
Panduan konseptual
-
Tutorial
-
Referensi
-
Tutorial
-
Tutorial
-
Tutorial
-
Teknis
Pelatihan
Pelatihan dan tutorial
Di lab ini, Anda akan menginstal Terraform dan membuat instance VM menggunakan Terraform.
Pelatihan
Pelatihan dan tutorial
Di lab ini, Anda akan menulis infrastruktur sebagai kode dengan Terraform.
Pelatihan
Pelatihan dan tutorial
Di lab ini, Anda akan mempelajari cara mendeskripsikan dan meluncurkan resource cloud dengan Terraform.
Pelatihan
Pelatihan dan tutorial
Mempelajari cara mengelola status
Di lab ini, Anda akan mempelajari cara menyimpan status Terraform di Google Cloud Storage.
Pelatihan
Pelatihan dan tutorial
Di lab ini, Anda akan mempelajari bagaimana modul dapat mengatasi masalah kompleksitas kode, duplikasi, dan penggunaan kembali.
Pelatihan
Pelatihan dan tutorial
Mempelajari cara menggunakan validasi kebijakan
Di lab ini, Anda akan mempelajari cara menerapkan kebijakan pada konfigurasi Terraform.
Contoh kode
Contoh Kode
Contoh resource
Temukan contoh untuk membangun infrastruktur Anda.
Contoh kode
Contoh Kode
Cetak biru
Temukan modul Terraform yang dapat di-deploy dan digunakan kembali.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-18 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 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--------------"]]