-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Wycliffe-USA/null_label
Update Null Label to support terraform v.13.
- Loading branch information
Showing
5 changed files
with
205 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,93 @@ | ||
output "id" { | ||
value = local.enabled ? local.id : "" | ||
description = "Disambiguated ID" | ||
description = "Disambiguated ID restricted to `id_length_limit` characters in total" | ||
} | ||
|
||
output "name" { | ||
value = local.enabled ? local.name : "" | ||
description = "Normalized name" | ||
output "id_full" { | ||
value = local.enabled ? local.id_full : "" | ||
description = "Disambiguated ID not restricted in length" | ||
} | ||
|
||
output "component" { | ||
value = local.enabled ? local.component : "" | ||
description = "Normalized component name" | ||
output "enabled" { | ||
value = local.enabled | ||
description = "True if module is enabled, false otherwise" | ||
} | ||
|
||
output "namespace" { | ||
value = local.enabled ? local.namespace : "" | ||
description = "Normalized namespace" | ||
} | ||
|
||
output "stage" { | ||
value = local.enabled ? local.stage : "" | ||
description = "Normalized stage" | ||
} | ||
|
||
output "environment" { | ||
value = local.enabled ? local.environment : "" | ||
description = "Normalized environment" | ||
} | ||
|
||
output "attributes" { | ||
value = local.enabled ? local.attributes : [] | ||
description = "List of attributes" | ||
output "name" { | ||
value = local.enabled ? local.name : "" | ||
description = "Normalized name" | ||
} | ||
|
||
output "component" { | ||
value = local.enabled ? local.component : "" | ||
description = "Normalized component" | ||
} | ||
|
||
output "stage" { | ||
value = local.enabled ? local.stage : "" | ||
description = "Normalized stage" | ||
} | ||
|
||
output "delimiter" { | ||
value = local.enabled ? local.delimiter : "" | ||
description = "Delimiter between `namespace`, `environment`, `stage`, `name` and `attributes`" | ||
} | ||
|
||
output "attributes" { | ||
value = local.enabled ? local.attributes : [] | ||
description = "List of attributes" | ||
} | ||
|
||
output "tags" { | ||
value = local.enabled ? local.tags : {} | ||
description = "Normalized Tag map" | ||
} | ||
|
||
output "additional_tag_map" { | ||
value = local.additional_tag_map | ||
description = "The merged additional_tag_map" | ||
} | ||
|
||
output "label_order" { | ||
value = local.label_order | ||
description = "The naming order actually used to create the ID" | ||
} | ||
|
||
output "regex_replace_chars" { | ||
value = local.regex_replace_chars | ||
description = "The regex_replace_chars actually used to create the ID" | ||
} | ||
|
||
output "id_length_limit" { | ||
value = local.id_length_limit | ||
description = "The id_length_limit actually used to create the ID, with `0` meaning unlimited" | ||
} | ||
|
||
output "tags_as_list_of_maps" { | ||
value = local.tags_as_list_of_maps | ||
description = "Additional tags as a list of maps, which can be used in several AWS resources" | ||
} | ||
|
||
output "context" { | ||
output "normalized_context" { | ||
value = local.output_context | ||
description = "Context of this module to pass to other label modules" | ||
description = "Normalized context of this module" | ||
} | ||
|
||
output "label_order" { | ||
value = local.label_order | ||
description = "The naming order of the id output and Name tag" | ||
output "context" { | ||
value = local.input | ||
description = <<-EOT | ||
Merged but otherwise unmodified input to this module, to be used as context input to other modules. | ||
Note: this version will have null values as defaults, not the values actually used as defaults. | ||
EOT | ||
} | ||
|
Oops, something went wrong.