Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cookiecutter hook and tfvar validation to limit service account characters #20

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
d33bs marked this conversation as resolved.
Show resolved Hide resolved
}

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