This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2551
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2551 by this push:
     new ed2e85a3b [DATALAB-2551]: fixed some arguments
ed2e85a3b is described below

commit ed2e85a3bcbc91e27a378215115779897213c000
Author: leonidfrolov <[email protected]>
AuthorDate: Wed May 18 15:42:15 2022 +0300

    [DATALAB-2551]: fixed some arguments
---
 infrastructure-provisioning/terraform/gcp/endpoint/main/iam.tf  | 1 +
 infrastructure-provisioning/terraform/gcp/modules/common/iam.tf | 1 +
 2 files changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/terraform/gcp/endpoint/main/iam.tf 
b/infrastructure-provisioning/terraform/gcp/endpoint/main/iam.tf
index d1924006c..c10dcffb4 100644
--- a/infrastructure-provisioning/terraform/gcp/endpoint/main/iam.tf
+++ b/infrastructure-provisioning/terraform/gcp/endpoint/main/iam.tf
@@ -45,6 +45,7 @@ resource "google_project_iam_member" "iam" {
 }
 
 resource "google_project_iam_member" "role_for_member" {
+  project = var.gcp_project_id
   member = "serviceAccount:${google_service_account.endpoint_sa.email}"
   role   = google_project_iam_custom_role.endpoint_role.id
 }
diff --git a/infrastructure-provisioning/terraform/gcp/modules/common/iam.tf 
b/infrastructure-provisioning/terraform/gcp/modules/common/iam.tf
index de1ca59f3..271cab3ab 100644
--- a/infrastructure-provisioning/terraform/gcp/modules/common/iam.tf
+++ b/infrastructure-provisioning/terraform/gcp/modules/common/iam.tf
@@ -53,6 +53,7 @@ resource "google_project_iam_member" "role_for_member" {
 resource "google_project_iam_member" "iam" {
   #Grant other roles for the ps_sa
   count  = "${length(var.ps_roles)}"
+  project = var.gcp_project_id
   member = "serviceAccount:${google_service_account.ps_sa.email}"
   role   = "${element(var.ps_roles, count.index)}"
 }
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to