From 460af6246c7253bf2e3b9746e03805d6ef7a2ff8 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Fri, 31 May 2024 13:11:12 +0200 Subject: [PATCH] enable hierarchy in fast project factory (#2331) --- fast/stages/3-project-factory/dev/README.md | 2 +- fast/stages/3-project-factory/dev/variables.tf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fast/stages/3-project-factory/dev/README.md b/fast/stages/3-project-factory/dev/README.md index 135ea808..bf70edc4 100644 --- a/fast/stages/3-project-factory/dev/README.md +++ b/fast/stages/3-project-factory/dev/README.md @@ -80,7 +80,7 @@ terraform apply | name | description | type | required | default | producer | |---|---|:---:|:---:|:---:|:---:| | [billing_account](variables-fast.tf#L17) | Billing account id. If billing account is not part of the same org set `is_org_level` to false. | object({…}) | ✓ | | 0-bootstrap | -| [factories_config](variables.tf#L17) | Path to folder with YAML resource description data files. | object({…}) | ✓ | | | +| [factories_config](variables.tf#L17) | Path to folder with YAML resource description data files. | object({…}) | ✓ | | | | [prefix](variables-fast.tf#L30) | Prefix used for resources that need unique names. Use a maximum of 9 chars for organizations, and 11 chars for tenants. | string | ✓ | | 0-bootstrap | ## Outputs diff --git a/fast/stages/3-project-factory/dev/variables.tf b/fast/stages/3-project-factory/dev/variables.tf index 64111f6c..776af02a 100644 --- a/fast/stages/3-project-factory/dev/variables.tf +++ b/fast/stages/3-project-factory/dev/variables.tf @@ -17,6 +17,10 @@ variable "factories_config" { description = "Path to folder with YAML resource description data files." type = object({ + hierarchy = optional(object({ + folders_data_path = string + parent_ids = optional(map(string), {}) + })) projects_data_path = string budgets = optional(object({ billing_account = string