-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathbigquery.tf
More file actions
33 lines (31 loc) · 854 Bytes
/
bigquery.tf
File metadata and controls
33 lines (31 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
resource "google_bigquery_dataset" "source_datasets" {
for_each = local.source_datasets
dataset_id = each.key
description = each.value
project = google_project.data_project.project_id
location = local.region
delete_contents_on_destroy = true
depends_on = [
google_project_service.data_project_services,
]
access {
role = "WRITER"
user_by_email = google_service_account.airbyte_sa.email
}
access {
role = "WRITER"
user_by_email = google_service_account.dbt_sa.email
}
access {
role = "WRITER"
user_by_email = google_service_account.airflow_sa.email
}
access {
role = "OWNER"
user_by_email = google_service_account.bq_owner.email
}
access {
role = "READER"
user_by_email = google_service_account.metabase_sa.email
}
}