From 0fe9b40bb5cb16c10964a639b0522fb9b186285f Mon Sep 17 00:00:00 2001 From: Kevin Parasseril Date: Sun, 29 Sep 2024 19:03:50 +0530 Subject: [PATCH] Added data viewer role --- terraform/service_accounts.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform/service_accounts.tf b/terraform/service_accounts.tf index 13ea0a6..8fa59ea 100644 --- a/terraform/service_accounts.tf +++ b/terraform/service_accounts.tf @@ -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}"] } \ No newline at end of file