Skip to content

Commit

Permalink
Merge pull request openshift#2134 from csrwng/gcp_cp_attach
Browse files Browse the repository at this point in the history
[gcp] data/data: add service user role to masters
  • Loading branch information
openshift-merge-robot authored Aug 1, 2019
2 parents 7eaea99 + a402e99 commit 7bf8069
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/data/gcp/master/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ resource "google_project_iam_member" "master-object-storage-admin" {
member = "serviceAccount:${google_service_account.master-node-sa.email}"
}

resource "google_project_iam_member" "master-service-account-user" {
role = "roles/iam.serviceAccountUser"
member = "serviceAccount:${google_service_account.master-node-sa.email}"
}

resource "google_compute_instance" "master" {
count = var.instance_count

Expand Down

0 comments on commit 7bf8069

Please sign in to comment.