-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
documentation update: include bigquery_dataset resource in examples t…
…o show how dataset_id attribute is used (#9927)
- Loading branch information
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,32 +41,44 @@ data "google_iam_policy" "owner" { | |
} | ||
resource "google_bigquery_dataset_iam_policy" "dataset" { | ||
dataset_id = "your-dataset-id" | ||
dataset_id = google_bigquery_dataset.dataset.dataset_id | ||
policy_data = data.google_iam_policy.owner.policy_data | ||
} | ||
resource "google_bigquery_dataset" "dataset" { | ||
dataset_id = "example_dataset" | ||
} | ||
``` | ||
|
||
## google\_bigquery\_dataset\_iam\_binding | ||
|
||
```hcl | ||
resource "google_bigquery_dataset_iam_binding" "reader" { | ||
dataset_id = "your-dataset-id" | ||
dataset_id = google_bigquery_dataset.dataset.dataset_id | ||
role = "roles/bigquery.dataViewer" | ||
members = [ | ||
"user:[email protected]", | ||
] | ||
} | ||
resource "google_bigquery_dataset" "dataset" { | ||
dataset_id = "example_dataset" | ||
} | ||
``` | ||
|
||
## google\_bigquery\_dataset\_iam\_member | ||
|
||
```hcl | ||
resource "google_bigquery_dataset_iam_member" "editor" { | ||
dataset_id = "your-dataset-id" | ||
dataset_id = google_bigquery_dataset.dataset.dataset_id | ||
role = "roles/bigquery.dataEditor" | ||
member = "user:[email protected]" | ||
} | ||
resource "google_bigquery_dataset" "dataset" { | ||
dataset_id = "example_dataset" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|