Skip to content

Commit

Permalink
create service account for bq userbyEmail test (#3206) (#5818)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 3, 2020
1 parent 5c48ba8 commit fd0c36f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/3206.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
9 changes: 7 additions & 2 deletions google/resource_big_query_dataset_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,19 @@ resource "google_bigquery_dataset" "dataset" {
}
access {
role = "WRITER"
user_by_email = "[email protected]"
role = "OWNER"
user_by_email = google_service_account.bqowner.email
}
access {
role = "READER"
domain = "hashicorp.com"
}
}
resource "google_service_account" "bqowner" {
account_id = "bqowner%{random_suffix}"
}
`, context)
}

Expand Down
9 changes: 7 additions & 2 deletions website/docs/r/bigquery_dataset.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,19 @@ resource "google_bigquery_dataset" "dataset" {
}
access {
role = "WRITER"
user_by_email = "[email protected]"
role = "OWNER"
user_by_email = google_service_account.bqowner.email
}
access {
role = "READER"
domain = "hashicorp.com"
}
}
resource "google_service_account" "bqowner" {
account_id = "bqowner"
}
```
## Example Usage - Bigquery Dataset Cmek

Expand Down

0 comments on commit fd0c36f

Please sign in to comment.