forked from cloudposse/terraform-null-label
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefaults.tf
38 lines (34 loc) · 1.27 KB
/
defaults.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
locals {
defaults = {
enabled = true
namespace = null
environment = null
location = null
stage = null
application = null
delimiter = "-"
attributes = []
tags = {}
additional_tag_map = {}
label_order = ["namespace", "application", "location_code", "environment_code", "attributes"]
regex_replace_chars = "/[^-a-zA-Z0-9]/"
delimiter = "-"
environment_codes = local.default_environment_codes
region_codes = local.default_region_codes
resource_codes = local.default_resource_codes
replacement = ""
id_length_limit = 0
id_hash_length = 5
label_key_case = "title"
label_value_case = "lower"
descriptor_formats = {}
# Note: we have to use [] instead of null for unset lists due to
# https://github.com/hashicorp/terraform/issues/28137
# which was not fixed until Terraform 1.0.0,
# but we want the default to be all the labels in `label_order`
# and we want users to be able to prevent all tag generation
# by setting `labels_as_tags` to `[]`, so we need
# a different sentinel to indicate "default"
labels_as_tags = ["unset"]
}
}