diff --git a/CHANGELOG.md b/CHANGELOG.md index 6181e92..2fb1e43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,3 +19,7 @@ - 0.2.1 -- 2025-11-04 - tags - fix case for roles with no tags.yml + +- 0.3.0 -- 2026-02-17 + - base-label + - add some outputs diff --git a/base-label/outputs.tf b/base-label/outputs.tf index e40d7fc..66fd835 100644 --- a/base-label/outputs.tf +++ b/base-label/outputs.tf @@ -2,3 +2,41 @@ output "version" { description = "Module version information. Cannot be passed back in tags because it will overwrite other module tags" value = local.base_tags } + +output "core" { + description = "Map of base label format values" + value = { + business = var.business + application = var.application + environment = var.environment + custom = var.custom + } +} + +locals { + _blf_parts = [ + var.business, + var.application, + var.environment, + var.custom, + ] + blf_parts = compact(local._blf_parts) + _blf_prefix = [ + var.business, + var.application, + var.environment, + ] + blf_prefix = compact(local._blf_prefix) + prefix_dash = join("-",local.blf_prefix) + prefix_slash = join("/",local.blf_prefix) +} + +output "formats" { + description = "Map of base label format convenience outputs" + value = { + parts = local.blf_parts + prefix = local.blf_prefix + prefix_dash = local.prefix_dash + prefix_slash = local.prefix_slash + } +} diff --git a/common/version.tf b/common/version.tf index ad48329..f9214c8 100644 --- a/common/version.tf +++ b/common/version.tf @@ -1,4 +1,4 @@ locals { - _module_version = "0.2.1" + _module_version = "0.3.0" _module_name = "boc-nts" }