From 8401d07052441388aab6881afe6d73d18926e8b7 Mon Sep 17 00:00:00 2001 From: Uche Madu Date: Sat, 21 Oct 2023 06:59:11 +0100 Subject: [PATCH] fix bigquery --- terraform/service-accounts.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terraform/service-accounts.tf b/terraform/service-accounts.tf index f63e7bc..b650f46 100644 --- a/terraform/service-accounts.tf +++ b/terraform/service-accounts.tf @@ -5,4 +5,14 @@ # Retrieve the service account established in setup.sh data "google_service_account" "deb-sa" { account_id = "deb-sa" +} + + +resource "google_service_account_iam_binding" "impersonate_binding" { + service_account_id = module.airflow_workload_identity.gcp_service_account_email + role = "roles/iam.serviceAccountTokenCreator" + + members = [ + "serviceAccount:${data.google_service_account.deb-sa.email}" + ] } \ No newline at end of file