Skip to content

Commit

Permalink
fix: Stackdriver SA name
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Jul 16, 2024
1 parent 7a68775 commit 8b0e660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/service_accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ resource "google_service_account_iam_member" "workload_binding" {
### service account for stackdriver
resource "google_service_account" "stackdriver" {
count = var.enable_stackdriver == true ? 1 : 0
account_id = substr("${random_id.main.dec}-stackdriver", 0, 30)
account_id = format("%s-stackdriver", substr(random_id.main.dec, 0, 18))
display_name = "Service Account For Workload Identity"
}

Expand Down

0 comments on commit 8b0e660

Please sign in to comment.