Skip to content

Commit

Permalink
documentation update: include bigquery_dataset resource in examples t…
Browse files Browse the repository at this point in the history
…o show how dataset_id attribute is used (#5150) (#3573)

Co-authored-by: Bjorn Stange <bjorn248@gmail.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Bjorn Stange <bjorn248@gmail.com>
  • Loading branch information
modular-magician and Bjorn248 committed Aug 27, 2021
1 parent 373da43 commit b012071
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/5150.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
18 changes: 15 additions & 3 deletions website/docs/r/bigquery_dataset_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:jane@example.com",
]
}
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:jane@example.com"
}
resource "google_bigquery_dataset" "dataset" {
dataset_id = "example_dataset"
}
```

## Argument Reference
Expand Down

0 comments on commit b012071

Please sign in to comment.