Skip to content

Commit dbc6749

Browse files
committed
Update comments
1 parent 7478900 commit dbc6749

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

main.tf

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# Terraform module to provide consistent naming
33
#
44
# TODO:
5-
# Add attributes to name if not empty
6-
# Refactor to use local and output the locals. Test - test - test
7-
# Change where replace is done. Move to earlier in process
5+
# Change where replace is done. Move to earlier in process. On initial `name`?
86
# Create tags_asg list from tags map. If possible
97
# New input tags_asg -> tags_asg with standard tags added
108

@@ -50,10 +48,6 @@ locals {
5048
)
5149
: local.id}"
5250

53-
#tags_asg list of maps
54-
#map("key", "interpolation1", "value", "value3", "propagate_at_launch", true),
55-
# keys, values, map, merge, matchkeys, transpose
56-
5751
#TODO: only add Organization if not ""
5852
tags = "${ merge(
5953
var.tags,
@@ -64,4 +58,19 @@ locals {
6458
"Terraform", "true"
6559
)
6660
)}"
61+
/*
62+
tags_asg = ["${ concat(
63+
list(
64+
map("key", "Name",
65+
"value", var.namespaced ? format("%s-%s", var.environment, var.name)
66+
: format("%s", var.name), "propagate_at_launch", true),
67+
map("key", "Cluster",
68+
"value", var.namespaced ? format("%s-%s", var.environment, var.name)
69+
: format("%s", var.name), "propagate_at_launch", true),
70+
map("key", "Environment", "value", var.environment, "propagate_at_launch", true),
71+
map("key", "Terraform", "value", "true", "propagate_at_launch", true)
72+
),
73+
var.tags_asg)
74+
}"]
75+
*/
6776
}

0 commit comments

Comments
 (0)