From dddd42dd07df9728dae01f007544cb15331c75f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Niesiob=C4=99dzki?= Date: Fri, 11 Apr 2025 14:14:32 +0000 Subject: [PATCH] Apply recent changes to factory-projects-object.tf to vpc-factory --- .../factory-projects-object.tf | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/net-vpc-factory/factory-projects-object.tf b/modules/net-vpc-factory/factory-projects-object.tf index 3e9c2d714..688dbcf10 100644 --- a/modules/net-vpc-factory/factory-projects-object.tf +++ b/modules/net-vpc-factory/factory-projects-object.tf @@ -234,7 +234,25 @@ locals { try(v.tag_bindings, null), local.__projects_config.data_defaults.tag_bindings ) - vpc_sc = ( # type: object + tags = { + for tag_name, tag_data in try(v.tags, {}) : tag_name => { + description = try(tag_data.description, "Managed by the Terraform project-factory module.") + id = try(tag_data.id, null) + iam = try(tag_data.iam, {}) + iam_bindings = try(tag_data.iam_bindings, {}) + iam_bindings_additive = try(tag_data.iam_bindings_additive, {}) + values = { + for value_name, value_data in try(tag_data.values, {}) : value_name => { + description = try(value_data.description, "Managed by the Terraform project-factory module.") + id = try(value_data.id, null) + iam = try(value_data.iam, {}) + iam_bindings = try(value_data.iam_bindings, {}) + iam_bindings_additive = try(value_data.iam_bindings_additive, {}) + } + } + } + } + vpc_sc = ( local.__projects_config.data_overrides.vpc_sc != null ? local.__projects_config.data_overrides.vpc_sc : (