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

  1. Bulk migration
  2. Live migration
  3. Sample environment setups

Commonly used templates & guides

  1. How to run a production migration using a combination of bulk and live migrations
  2. Bulk migration
  3. Live migration
  4. Sharded bulk migration
  5. Sharded live migration using one dataflow job
  6. Sharded live migration using multiple dataflow jobs

Sample structure

Each sample contains the following (and potentially more) files:

  1. main.tf - This contains the Terraform resources which will be created.
  2. outputs.tf - This declares the outputs that will be output as part of running the terraform example.
  3. variables.tf - This declares the input variables that are required to configure the resources.
  4. terraform.tf - This contains the required providers and APIs/project configurations for the sample.
  5. terraform.tfvars - This contains the dummy inputs that need to be populated to run the example.
  6. terraform_simple.tfvars - This contains the minimal list of dummy inputs that need to be populated to run the example.