-
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
Changes from 4 commits
2b0dfd9
a12b67d
45506e3
3e22161
ae81524
881ad9a
66aacbb
2dd0a9e
6da390d
46234f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
locals { | ||
env_business_unit_folder_name = "${var.folder_prefix}-${var.env}-${var.business_code}" | ||
} | ||
|
||
resource "google_folder" "env_business_unit" { | ||
display_name = local.env_business_unit_folder_name | ||
parent = local.env_folder_name | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 Let me know if sounds good for you or if I misunderstood the request. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
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.