From 251019ec285dfc4b8aff5f8b5b37ac739232f03f Mon Sep 17 00:00:00 2001 From: Bjorn Stange Date: Fri, 27 Aug 2021 13:24:14 -0400 Subject: [PATCH] documentation update: include bigquery_dataset resource in examples to show how dataset_id attribute is used (#9927) --- .../docs/r/bigquery_dataset_iam.html.markdown | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/website/docs/r/bigquery_dataset_iam.html.markdown b/website/docs/r/bigquery_dataset_iam.html.markdown index 8b4a263606f..c77f8512ad9 100644 --- a/website/docs/r/bigquery_dataset_iam.html.markdown +++ b/website/docs/r/bigquery_dataset_iam.html.markdown @@ -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