Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Terraform est un outil permettant de créer, de modifier et de gérer les versions d'infrastructure. Il utilise des fichiers de configuration pour décrire les composants nécessaires à l'exécution d'une application donnée ou de l'ensemble de votre infrastructure.
Le fournisseur TerraformGoogle Cloud permet de créer des instances et des bases de données Spanner, ainsi que de modifier ou de supprimer des ressources Spanner.
Le fournisseur Terraform propose les ressources Spanner suivantes : Google Cloud
Pour en savoir plus sur l'utilisation de ces ressources pour créer et gérer des instances et des bases de données Spanner, consultez la page Utiliser Terraform avec Google Cloud ou la documentation de référence du fournisseur Terraform pourGoogle Cloud .
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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."]]