I'd like to run the "Cloud Spanner to Cloud Storage Avro" template in a different project than the project my spanner instance lives.
Currently I cannot specify the project in the template:
|
SpannerConfig spannerConfig = |
|
SpannerConfig.create() |
|
.withHost(options.getSpannerHost()) |
|
.withInstanceId(options.getInstanceId()) |
|
.withDatabaseId(options.getDatabaseId()); |
It is however possible in the spanner to text export:
|
SpannerConfig spannerConfig = |
|
SpannerConfig.create() |
|
.withProjectId(options.getSpannerProjectId()) |
|
.withInstanceId(options.getSpannerInstanceId()) |
|
.withDatabaseId(options.getSpannerDatabaseId()); |
Is this something that can be added?
I'd like to run the "Cloud Spanner to Cloud Storage Avro" template in a different project than the project my spanner instance lives.
Currently I cannot specify the project in the template:
DataflowTemplates/src/main/java/com/google/cloud/teleport/spanner/ExportPipeline.java
Lines 80 to 84 in 9a95f05
It is however possible in the spanner to text export:
DataflowTemplates/src/main/java/com/google/cloud/teleport/templates/SpannerToText.java
Lines 91 to 95 in 9a95f05
Is this something that can be added?