89 lines
2.3 KiB
HCL
Executable File
89 lines
2.3 KiB
HCL
Executable File
output "id" {
|
|
value = local.enabled ? local.id : ""
|
|
description = "Disambiguated ID restricted to `id_length_limit` characters in total"
|
|
}
|
|
|
|
output "id_full" {
|
|
value = local.enabled ? local.id_full : ""
|
|
description = "Disambiguated ID not restricted in length"
|
|
}
|
|
|
|
output "enabled" {
|
|
value = local.enabled
|
|
description = "True if module is enabled, false otherwise"
|
|
}
|
|
|
|
output "namespace" {
|
|
value = local.enabled ? local.namespace : ""
|
|
description = "Normalized namespace"
|
|
}
|
|
|
|
output "environment" {
|
|
value = local.enabled ? local.environment : ""
|
|
description = "Normalized environment"
|
|
}
|
|
|
|
output "name" {
|
|
value = local.enabled ? local.name : ""
|
|
description = "Normalized name"
|
|
}
|
|
|
|
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 "normalized_context" {
|
|
value = local.output_context
|
|
description = "Normalized context of this module"
|
|
}
|
|
|
|
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
|
|
}
|
|
|