Skip to content

Commit

Permalink
use variable slice to limit svc account chars
Browse files Browse the repository at this point in the history
  • Loading branch information
d33bs committed Apr 10, 2024
1 parent 01482aa commit 846c761
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# tf account creation and related work
# Create a new service account
resource "google_service_account" "service_account" {
account_id = "${var.initiative_label}-svc-account"
# note: template may have truncated the project name due to character limits
# for Google service accounts. See the following for more information:
# https://cloud.google.com/iam/docs/service-accounts-create#creating
account_id = "{{ cookiecutter.project_name[:21] }}-svc-acct"
}

#Create a service-account key for the associated service account
Expand Down

0 comments on commit 846c761

Please sign in to comment.