Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
cloudspannerecosystemPublic archive

About

Google Cloud Spanner with Terraform

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Spanner with Terraform

You can use Terraform to create, manage and delete Cloud Spanner resources. Google Terraform modules provide Cloud Spanner support via the following resources:

Authentication

Google Terraform modules can be authenticated

Examples

You can checkout into the following directories and run terraform apply to create a plan and apply changes. The following examples use Application Default Credentials (ADC) to authenticate. Refer to the credentials file to authenticate with a service account.

Edit the main.tf file and replace YOUR_PROJECT_ID with your Google Cloud project ID.

  • regional - Regional cluster with a database.
  • multi-regional - Multi-regional cluster with a database.
  • lifecycle - Database protected with lifecycle argument against accidental deletion.

Codelab

Alternatively, a step-by-step tutorial is also available as a codelab.

Issues

Please file bugs and feedback to the Cloud Spanner Terraform resources on the Google Terraform Module. Issues and feedback to the examples are appreciated on this repo.

About

Google Cloud Spanner with Terraform

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors