Skip to content

Commit 4b55213

Browse files
Add external dataset reference to bigquery dataset (#9440) (#16707)
* Add external dataset reference to bigquery dataset * Update external dataset test * Refactor external dataset reference [upstream:0ca113a42f07ec89a9d49394f69796243f9d9a8b] Signed-off-by: Modular Magician <[email protected]>
1 parent b6289e7 commit 4b55213

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.changelog/9440.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
bigquery: added `external_dataset_reference` field to `google_bigquery_dataset` resource (beta)
3+
```

website/docs/r/bigquery_dataset.html.markdown

+33
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,23 @@ resource "google_bigquery_dataset" "private" {
203203
}
204204
}
205205
```
206+
## Example Usage - Bigquery Dataset External Reference Aws Docs
207+
208+
209+
```hcl
210+
resource "google_bigquery_dataset" "dataset" {
211+
provider = google-beta
212+
dataset_id = "example_dataset"
213+
friendly_name = "test"
214+
description = "This is a test description"
215+
location = "aws-us-east-1"
216+
217+
external_dataset_reference {
218+
external_source = "aws-glue://arn:aws:glue:us-east-1:999999999999:database/database"
219+
connection = "projects/project/locations/aws-us-east-1/connections/connection"
220+
}
221+
}
222+
```
206223

207224
## Argument Reference
208225

@@ -264,6 +281,11 @@ The following arguments are supported:
264281
(Optional)
265282
A user-friendly description of the dataset
266283

284+
* `external_dataset_reference` -
285+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
286+
Information about the external metadata storage where the dataset is defined.
287+
Structure is [documented below](#nested_external_dataset_reference).
288+
267289
* `friendly_name` -
268290
(Optional)
269291
A descriptive name for the dataset
@@ -449,6 +471,17 @@ destroying the resource will fail if tables are present.
449471
A-Z), numbers (0-9), or underscores (_). The maximum length
450472
is 256 characters.
451473

474+
<a name="nested_external_dataset_reference"></a>The `external_dataset_reference` block supports:
475+
476+
* `external_source` -
477+
(Required)
478+
External source that backs this dataset.
479+
480+
* `connection` -
481+
(Required)
482+
The connection id that is used to access the externalSource.
483+
Format: projects/{projectId}/locations/{locationId}/connections/{connectionId}
484+
452485
<a name="nested_default_encryption_configuration"></a>The `default_encryption_configuration` block supports:
453486

454487
* `kms_key_name` -

0 commit comments

Comments
 (0)