Skip to content

Commit edc7ee7

Browse files
fix: truncate service account display_name in backup module (#734)
Co-authored-by: Imran Nayer <[email protected]>
1 parent 90a3e64 commit edc7ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/backup/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ locals {
3333
resource "google_service_account" "sql_backup_serviceaccount" {
3434
count = local.create_service_account ? 1 : 0
3535
account_id = trimsuffix(substr("backup-${var.sql_instance}", 0, 28), "-")
36-
display_name = "Managed by Terraform - Service account for backup of SQL Instance ${var.sql_instance}"
36+
display_name = substr("Managed by Terraform - Service account for backup of SQL Instance ${var.sql_instance}", 0, 100)
3737
project = var.project_id
3838
}
3939

0 commit comments

Comments
 (0)