You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
datastream: added `destination_config.bigquery_destination_config.source_hierarchy_datasets.project_id` field to `google_datastream_stream` resource
3
+
```
4
+
5
+
google_datastream_stream: Add support for projectID field in SourceHierarchyDatasets.
6
+
7
+
Also added a new test in [`mmv1/templates/terraform/examples/datastream_stream_bigquery_cross_project_source_hierachy.tf.tmpl`](https://github.com/benjamin-maynard/magic-modules/blob/c1aaf45e21117e93ccbd5c25461efc2170b7b49e/mmv1/templates/terraform/examples/datastream_stream_bigquery_cross_project_source_hierachy.tf.tmpl).
8
+
9
+
I also had to add `default_from_api: true` to `binaryLogPosition` (the default) as **all** of the BigQuery tests were failing with a diff-after-apply. Unrelated to my changes¹.
10
+
11
+
I believe this is safe and all of the tests pass² (although the [blmt test is skipped](https://github.com/benjamin-maynard/magic-modules/blob/c1aaf45e21117e93ccbd5c25461efc2170b7b49e/mmv1/products/datastream/Stream.yaml#L234-L235)), but please let me know if any concerns.
12
+
13
+
14
+
[1]
15
+
```
16
+
Step 1/2 error: After applying this test step, the plan was not empty.
17
+
stdout:
18
+
Terraform used the selected providers to generate the following execution
19
+
plan. Resource actions are indicated with the following symbols:
20
+
~ update in-place
21
+
Terraform will perform the following actions:
22
+
# google_datastream_stream.default will be updated in-place
23
+
~ resource "google_datastream_stream" "default" {
24
+
id = "projects/platform-dev-8bvnw/locations/us-central1/streams/tf-test-my-streammpuoq3q4ky"
25
+
name = "projects/platform-dev-8bvnw/locations/us-central1/streams/tf-test-my-streammpuoq3q4ky"
26
+
# (10 unchanged attributes hidden)
27
+
~ source_config {
28
+
# (1 unchanged attribute hidden)
29
+
~ mysql_source_config {
30
+
# (2 unchanged attributes hidden)
31
+
- binary_log_position {}
32
+
}
33
+
# (2 unchanged blocks hidden)
34
+
}
35
+
Plan: 0 to add, 1 to change, 0 to destroy.
36
+
```
37
+
38
+
[2]
39
+
```
40
+
benmaynard$ make testacc TEST=./google/services/datastream TESTARGS='-run=TestAccDatastreamStream_datastreamStreamBigquery'
41
+
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google/services/datastream -v -run=TestAccDatastreamStream_datastreamStreamBigquery -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google/version.ProviderVersion=acc"
42
+
=== RUN TestAccDatastreamStream_datastreamStreamBigqueryExample
0 commit comments