Skip to content

Commit

Permalink
Merge pull request #78 from kevinsunny1996/build/add_bq_data_viewer
Browse files Browse the repository at this point in the history
Added data viewer role
  • Loading branch information
kevinsunny1996 authored Sep 29, 2024
2 parents 99b27bf + 0fe9b40 commit 96ec937
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 96ec937

Please sign in to comment.