Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
platform/gcp: reduce service account name terraform google provider #671
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre committed Nov 9, 2017
1 parent cd39fba commit 489cefd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gcp/master-igm/iam.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "google_service_account" "master-node-sa" {
account_id = "${var.cluster_name}-master-node"
account_id = "${length(var.cluster_name) > 28 ? "${format("%.28s", var.cluster_name)}-m" : "${var.cluster_name}-m"}"
display_name = "Master node"
}

Expand Down
2 changes: 1 addition & 1 deletion modules/gcp/worker-igm/iam.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "google_service_account" "worker-node-sa" {
account_id = "${var.cluster_name}-worker-node"
account_id = "${length(var.cluster_name) > 28 ? "${format("%.28s", var.cluster_name)}-w" : "${var.cluster_name}-w"}"
display_name = "Worker node"
}

Expand Down

0 comments on commit 489cefd

Please sign in to comment.