This PR adds samples for common scenarios users might have while trying to run a live migration to Spanner.
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.
SCENARIO: This Terraform example illustrates launching a live migration job for a MySQL source, given pre-created Datastream source and target connection profiles. As a result, it does not create any new buckets in the GCP account.
Creates the following resources -
Pubsub topic and subscription - This contains GCS object notifications as files are written to GCS for consumption by the Dataflow job.
Datastream stream - A datastream stream which reads from the source specified in the source connection profile and writes the data to the bucket specified in the target connection profile. Note that it uses a mandatory
prefix path inside the bucket where it will write the data to. The default
prefix path is data (can be overridden).
Bucket notification - Creates the GCS bucket notification which publish
to the pubsub topic created. Note that the bucket notification is created on
the mandatory prefix path specified for the stream above.
Dataflow job - The Dataflow job which reads from GCS and writes to
Spanner.
Permissions - It adds the required roles to the specified (or the
default) service accounts for the live migration to work.
This PR adds samples for common scenarios users might have while trying to run a live migration to Spanner.
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.SCENARIO: This Terraform example illustrates launching a live migration job for a MySQL source, given pre-created Datastream source and target connection profiles. As a result, it does not create any new buckets in the GCP account.
Creates the following resources -
data
(can be overridden).