Skip to content

cloudspannerecosystem/spanner-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages