Skip to content

Commit 72eb50a

Browse files
misiek1984niharika-98
authored andcommitted
feat(bigquery): Add example for creating a external dataset (terraform-google-modules#769)
* feat(bigquery): Add example for creating a external dataset * Change the directory name, add comments... * Forcing an empty commit. * Update external_source. * Update external_source. * Update a comment. * Add test.yaml file to skip a test
1 parent 33ad64d commit 72eb50a

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright 2024 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
# [START bigquery_create_spanner_external_dataset]
17+
resource "google_bigquery_dataset" "default" {
18+
dataset_id = "my_external_dataset"
19+
friendly_name = "My external dataset"
20+
description = "This is a test description."
21+
location = "US"
22+
external_dataset_reference {
23+
# The full identifier of your Spanner database.
24+
external_source = "google-cloudspanner:/projects/my_project/instances/my_instance/databases/my_database"
25+
# Must be empty for a Spanner external dataset.
26+
connection = ""
27+
}
28+
}
29+
# [END bigquery_create_spanner_external_dataset]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
apiVersion: blueprints.cloud.google.com/v1alpha1
16+
kind: BlueprintTest
17+
metadata:
18+
name: bigquery_create_spanner_external_dataset
19+
spec:
20+
skip: true

0 commit comments

Comments
 (0)