Skip to content

Commit

Permalink
Added data viewer role
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsunny1996 committed Sep 29, 2024
1 parent 99b27bf commit 0fe9b40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions terraform/service_accounts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ resource "google_project_iam_binding" "bq_job_creator" {
project = local.id
role = "roles/bigquery.jobUser"
members = ["serviceAccount:${google_service_account.airflow_user_sa.email}"]
}

resource "google_project_iam_binding" "bq_data_viewer" {
project = local.id
role = "roles/bigquery.dataViewer"
members = ["serviceAccount:${google_service_account.airflow_user_sa.email}"]
}

0 comments on commit 0fe9b40

Please sign in to comment.