forked from cloudposse/terraform-null-label
-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
111 lines (91 loc) · 3.25 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
102
103
104
105
106
107
108
109
110
111
output "id" {
value = local.enabled ? local.id : ""
description = "Disambiguated ID string restricted to `id_length_limit` characters in total"
}
output "id_resource" {
value = local.enabled ? local.id_with_resource_codes : {}
description = "Disambiguated ID string with resource code prefixes restricted to `id_length_limit` characters in total"
}
output "id_for_keyvault" {
value = local.enabled ? local.id_for_keyvault : ""
description = "Disambiguated ID string generating unique name for Azure Key Vault."
}
output "id_for_storage_account" {
value = local.enabled ? local.id_for_storage_account : ""
description = "Disambiguated ID string generating unique name for Azure Storage Accounts"
}
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 "environment" {
value = local.enabled ? local.environment : ""
description = "Normalized environment"
}
output "location" {
value = local.enabled ? local.location : ""
description = "Normalized location"
}
output "application" {
value = local.enabled ? local.application : ""
description = "Normalized application"
}
output "delimiter" {
value = local.enabled ? local.delimiter : ""
description = "Delimiter between `namespace`, `tenant`, `environment`, `purpose`, `application` 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_raw
description = "Normalized context of this module"
}
output "context" {
value = local.output_context_serialized
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
}