Terraform Templates
New
Dataflow templates now contains a repository that provides samples for common scenarios users might have while trying to run a live migration to Spanner using Terraform based orchestration.
Pick a sample that is closest to your use-case, and use it as a starting point, and tailor it to your own specific needs.
Terraform repositories
Commonly used templates & guides
- How to run a production migration using a combination of bulk and live migrations
- Bulk migration
- Live migration
- Sharded bulk migration
- Sharded live migration using one dataflow job
- Sharded live migration using multiple dataflow jobs
Sample structure
Each sample contains the following (and potentially more) files:
main.tf
- This contains the Terraform resources which will be created.outputs.tf
- This declares the outputs that will be output as part of running the terraform example.variables.tf
- This declares the input variables that are required to configure the resources.terraform.tf
- This contains the required providers and APIs/project configurations for the sample.terraform.tfvars
- This contains the dummy inputs that need to be populated to run the example.terraform_simple.tfvars
- This contains the minimal list of dummy inputs that need to be populated to run the example.