Skip to content

Commit

Permalink
- 0.3.0 -- 2026-02-17
Browse files Browse the repository at this point in the history
  - base-label
    - add some outputs
  • Loading branch information
badra001 committed Feb 17, 2026
1 parent 60e5ccb commit 549568d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
38 changes: 38 additions & 0 deletions base-label/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_version = "0.2.1"
_module_version = "0.3.0"
_module_name = "boc-nts"
}

0 comments on commit 549568d

Please sign in to comment.