forked from cloudposse/terraform-null-label
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlabel2.tf
46 lines (39 loc) · 1.06 KB
/
label2.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
module "label2" {
source = "../../"
context = module.label1.context
name = "Charlie"
tenant = "" # setting to `null` would have no effect
stage = "test"
delimiter = "+"
regex_replace_chars = "/[^a-zA-Z0-9-+]/"
additional_tag_map = {
propagate_at_launch = true
additional_tag = "yes"
}
tags = {
"City" = "London"
"Environment" = "Public"
}
# Because this is chained from label1, labels_as_tags should have no effect
labels_as_tags = ["stage"]
}
output "label2" {
value = {
id = module.label2.id
name = module.label2.name
namespace = module.label2.namespace
stage = module.label2.stage
tenant = module.label2.tenant
attributes = module.label2.attributes
delimiter = module.label2.delimiter
}
}
output "label2_tags" {
value = module.label2.tags
}
output "label2_tags_as_list_of_maps" {
value = module.label2.tags_as_list_of_maps
}
output "label2_context" {
value = module.label2.context
}