-
-
Notifications
You must be signed in to change notification settings - Fork 317
/
descriptors.tf
56 lines (47 loc) · 1.23 KB
/
descriptors.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
module "descriptors" {
source = "../.."
enabled = true
tenant = "H.R.H"
namespace = "CloudPosse"
environment = "UAT"
stage = "build"
name = "Winston Churchroom"
delimiter = "+"
attributes = ["fire", "water"]
tags = {
City = "Dublin"
Environment = "Private"
}
additional_tag_map = {
propagate = true
}
label_order = ["name", "environment", "stage", "attributes"]
regex_replace_chars = "/[^a-tv-zA-Z0-9+]/" # Eliminate "u" just to verify this is taking effect
id_length_limit = 6
descriptor_formats = {
stack = {
labels = ["tenant", "environment", "stage"]
format = "%v-%v-%v"
}
account_name = {
labels = ["stage", "tenant"]
format = "%v-%v"
}
}
}
output "descriptor_stack" {
value = module.descriptors.descriptors["stack"]
}
output "descriptor_account_name" {
value = module.descriptors.descriptors["account_name"]
}
module "chained_descriptors" {
source = "../.."
context = module.descriptors.context
}
output "chained_descriptor_stack" {
value = module.chained_descriptors.descriptors["stack"]
}
output "chained_descriptor_account_name" {
value = module.chained_descriptors.descriptors["account_name"]
}