forked from cloudposse/terraform-null-label
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
102 lines (83 loc) · 2.72 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
output "id" {
value = local.enabled ? local.id : ""
description = "Disambiguated ID string restricted to `id_length_limit` characters in total"
}
output "id_full" {
value = local.enabled ? local.id_full : ""
description = "ID string 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 "tenant" {
value = local.enabled ? local.tenant : ""
description = "Normalized tenant"
}
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`, `tenant`, `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 = <<-EOT
This is a list with one map for each `tag`. Each map contains the tag `key`,
`value`, and contents of `var.additional_tag_map`. Used in the rare cases
where resources need additional configuration information for each tag.
EOT
}
output "descriptors" {
value = local.descriptors
description = "Map of descriptors as configured by `descriptor_formats`"
}
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
}