Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Terraform adalah alat untuk mem-build, mengubah, dan membuat versi infrastruktur. Terraform menggunakan file konfigurasi untuk menjelaskan
komponen yang diperlukan untuk menjalankan satu aplikasi atau seluruh infrastruktur Anda.
Anda dapat menggunakan
Google Cloud Penyedia Terraform untuk membuat
instance dan database Spanner, serta untuk mengubah atau menghapus resource
Spanner.
Google Cloud Penyedia Terraform menawarkan resource Spanner berikut:
Untuk informasi selengkapnya tentang cara menggunakan resource ini untuk membuat dan mengelola
instance dan database Spanner, lihat
Menggunakan Terraform dengan Google Cloud atau lihat
referensiGoogle Cloud Penyedia Terraform.
[[["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-09-03 UTC."],[],[],null,["# Use Terraform with Spanner\n\n[Terraform](https://www.terraform.io/) is a tool for building,\nchanging, and versioning infrastructure. It uses configuration files to describe\nthe components needed to run a single application or your entire infrastructure.\n\nYou can use the\n[Google Cloud Terraform Provider](https://www.terraform.io/docs/providers/google/index.html) to create\nSpanner instances and databases, and to modify or delete Spanner\nresources.\n\n\n| **PostgreSQL interface note:** For PostgreSQL-dialect databases, Terraform doesn't support submitting DDL while creating a database. You must submit DDL in a separate operation.\n\n\u003cbr /\u003e\n\nThe Google Cloud Terraform Provider offers the following Spanner resources:\n\n- [google_spanner_instance](https://www.terraform.io/docs/providers/google/r/spanner_instance)\n- [google_spanner_database](https://www.terraform.io/docs/providers/google/r/spanner_database)\n- [google_spanner_instance_iam](https://www.terraform.io/docs/providers/google/r/spanner_instance_iam)\n- [google_spanner_database_iam](https://www.terraform.io/docs/providers/google/r/spanner_database_iam)\n\nFor more information about using these resources to create and manage\nSpanner instances and databases, see\n[Using Terraform with Google Cloud](https://cloud.google.com/docs/terraform) or consult the\nGoogle Cloud Terraform Provider [reference](https://registry.terraform.io/providers/hashicorp/google/latest/docs).\n\nWhat's next\n-----------\n\n- Learn more about [Terraform](https://www.terraform.io/).\n- Try out [code examples](https://github.com/cloudspannerecosystem/spanner-terraform#examples) that use the Google Cloud Terraform Provider with Spanner.\n- For a step-by-step tutorial, try the Spanner with Terraform [codelab](https://codelabs.developers.google.com/codelabs/cloud-spanner-terraform#0).\n- View the Google Cloud Terraform Provider [repository on GitHub](https://github.com/hashicorp/terraform-provider-google).\n- [File a GitHub issue](https://github.com/hashicorp/terraform-provider-google/issues) to report a bug or ask a question about Terraform."]]