diff --git a/modules/gcp/master-igm/iam.tf b/modules/gcp/master-igm/iam.tf index d69f692481..d5e537c994 100644 --- a/modules/gcp/master-igm/iam.tf +++ b/modules/gcp/master-igm/iam.tf @@ -1,5 +1,5 @@ resource "google_service_account" "master-node-sa" { - account_id = "${var.cluster_name}-master-node" + account_id = "${format("%.28s", var.cluster_name)}-m" display_name = "Master node" } diff --git a/modules/gcp/worker-igm/iam.tf b/modules/gcp/worker-igm/iam.tf index 99516f9b2a..955912004d 100644 --- a/modules/gcp/worker-igm/iam.tf +++ b/modules/gcp/worker-igm/iam.tf @@ -1,5 +1,5 @@ resource "google_service_account" "worker-node-sa" { - account_id = "${var.cluster_name}-worker-node" + account_id = "${format("%.28s", var.cluster_name)}-w" display_name = "Worker node" }