Skip to content

Commit

Permalink
Allow project factory projects to override name (#2407)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc authored Jul 4, 2024
1 parent 1f07cb7 commit 45fd48d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/project-factory/factory-projects.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2023 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -39,15 +39,15 @@ locals {
for k, v in local._projects : [
for b in try(v.billing_budgets, []) : {
budget = b
project = k
project = lookup(v, "name", k)
}
]
])
project_budgets = {
for v in local._project_budgets : v.budget => v.project...
}
projects = {
for k, v in local._projects : k => merge(v, {
for k, v in local._projects : lookup(v, "name", k) => merge(v, {
billing_account = try(coalesce(
var.data_overrides.billing_account,
try(v.billing_account, null),
Expand Down

0 comments on commit 45fd48d

Please sign in to comment.