You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/09/09 12:23:12 UTC
[incubator-dlab] branch DLAB-1086 updated: fixed issue with service
account
This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch DLAB-1086
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1086 by this push:
new 01adf68 fixed issue with service account
01adf68 is described below
commit 01adf6876022f428ac2a8d0f4357fcb24171612b
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Mon Sep 9 15:23:03 2019 +0300
fixed issue with service account
---
infrastructure-provisioning/terraform/gcp/ssn-gke/main/gke.tf | 2 ++
infrastructure-provisioning/terraform/gcp/ssn-gke/main/iam.tf | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/terraform/gcp/ssn-gke/main/gke.tf b/infrastructure-provisioning/terraform/gcp/ssn-gke/main/gke.tf
index 8228673..fe84f64 100644
--- a/infrastructure-provisioning/terraform/gcp/ssn-gke/main/gke.tf
+++ b/infrastructure-provisioning/terraform/gcp/ssn-gke/main/gke.tf
@@ -48,6 +48,8 @@ resource "google_container_cluster" "ssn_k8s_gke_cluster" {
issue_client_certificate = false
}
}
+ depends_on = [google_project_iam_member.log_writer, google_project_iam_member.metric_writer,
+ google_project_iam_member.monitoring_viewer]
}
resource "google_container_node_pool" "ssn_k8s_gke_node_pool" {
diff --git a/infrastructure-provisioning/terraform/gcp/ssn-gke/main/iam.tf b/infrastructure-provisioning/terraform/gcp/ssn-gke/main/iam.tf
index 152bdce..1557f10 100644
--- a/infrastructure-provisioning/terraform/gcp/ssn-gke/main/iam.tf
+++ b/infrastructure-provisioning/terraform/gcp/ssn-gke/main/iam.tf
@@ -46,7 +46,7 @@ resource "google_project_iam_member" "metric_writer" {
resource "google_project_iam_member" "monitoring_viewer" {
project = var.project_id
# role = "projects/${var.project_id}/roles/${local.role_name}"
- role = "monitoring.viewer"
+ role = "roles/monitoring.viewer"
member = "serviceAccount:${google_service_account.ssn_k8s_sa.email}"
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org