-
Notifications
You must be signed in to change notification settings - Fork 724
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
feat: create subfolders for business units in 4-projects step #1039
feat: create subfolders for business units in 4-projects step #1039
Conversation
…-foundation into feature/create-folders-for-business-units
@@ -82,8 +82,7 @@ locals { | |||
"roles/dns.admin", | |||
], | |||
"proj" = [ | |||
"roles/resourcemanager.folderViewer", | |||
"roles/resourcemanager.folderIamAdmin", | |||
"roles/resourcemanager.folderAdmin", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This permission is needed because now 4-projects step creates the proper subfolders by example BUs (before all the folders were created at 2-environments).
folderAdmin
because we need permissions to create and destroy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a hyphen got dropped in the change between business_code and project_suffix "${var.project_prefix}-${local.env_code}-${var.business_code}${var.project_suffix}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eeaton in order to achieve the requested example we have at the backlog (from prj-bu1-{env}-foo
to prj-{env}-bu1foo
) I intentionally dropped the hyphen here.
Let me know if sounds good for you or if I misunderstood the request.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification, I thought the variable project_suffix expanded to the 4 digit random id, but if it expands to "prj-{env}-bu1foo-1234" that is correct how you wrote it.
…ers-for-business-units
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore my previous comment - LGTM
/gcbrun |
The goal of this PR is to introduce GCP subfolders per business unit (1 & 2) for all
fldr-{env}
folders in 4-projects step.In addition to the folder structure, a minor change at the BU's project name was introduced. See the example below:
Current:
Suggested: (including folder structure change + fixes to naming convention)
Evidence: