Skip to content

Commit 7952959

Browse files
committed
experiment with terraform 12 objects and maps
1 parent 65bfddc commit 7952959

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

security.group-main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2+
locals {
3+
4+
ResourceTags = {
5+
Weekday = "Thursday"
6+
Millenia = "21st"
7+
Season = "Summer"
8+
}
9+
10+
}
11+
212
/*
313
| --
414
| -- This is the main security group resource for aggregating the
@@ -12,13 +22,18 @@ resource aws_security_group new {
1222
name = "security-group-${ var.in_ecosystem_name }-${ var.in_tag_timestamp }-n"
1323
description = "This new security group ${ var.in_tag_description }"
1424

25+
26+
tags = local.ResourceTags
27+
28+
/*
1529
tags = {
1630
1731
Name = "security-group-${ var.in_ecosystem_name }-${ var.in_tag_timestamp }"
1832
Class = "${ var.in_ecosystem_name }"
1933
Instance = "${ var.in_ecosystem_name }-${ var.in_tag_timestamp }"
2034
Desc = "New security group for ${ var.in_ecosystem_name } ${ var.in_tag_description }"
2135
}
36+
*/
2237

2338
}
2439

0 commit comments

Comments
 (0)