github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/google/bigquery/AVD-GCP-0046/Terraform.md (about)

     1  
     2  Configure access permissions with higher granularity
     3  
     4  ```hcl
     5   resource "google_bigquery_dataset" "good_example" {
     6     dataset_id                  = "example_dataset"
     7     friendly_name               = "test"
     8     description                 = "This is a test description"
     9     location                    = "EU"
    10     default_table_expiration_ms = 3600000
    11   
    12     labels = {
    13       env = "default"
    14     }
    15   
    16     access {
    17       role          = "OWNER"
    18       user_by_email = google_service_account.bqowner.email
    19     }
    20   
    21     access {
    22       role   = "READER"
    23       domain = "hashicorp.com"
    24     }
    25   }
    26   
    27   resource "google_service_account" "bqowner" {
    28     account_id = "bqowner"
    29   }
    30   
    31  ```
    32  
    33  #### Remediation Links
    34   - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigquery_dataset#special_group
    35