File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11locals {
2+ module = " amp"
3+
24 csi = format (
3- " %s-%s-%s-%s-%s " ,
5+ " %s-%s-%s-%s" ,
46 var. project ,
57 var. environment ,
68 var. component ,
7- var. module ,
89 var. name ,
910 )
1011
11- # CSI for use in resources with an account namespace, eg IAM roles
12- csi_account = replace (
13- format (
14- " %s-%s-%s-%s-%s-%s" ,
15- var. project ,
16- var. region ,
17- var. environment ,
18- var. component ,
19- var. module ,
20- var. name ,
21- ),
22- " _" ,
23- " " ,
24- )
25-
2612 default_tags = merge (
2713 var. default_tags ,
2814 {
29- Module = var .module
15+ Module = local .module
3016 Name = local.csi
3117 },
3218 )
Original file line number Diff line number Diff line change @@ -32,16 +32,6 @@ variable "description" {
3232 description = " Description for the branch"
3333}
3434
35- # #
36- # Module self-identification
37- # #
38-
39- variable "module" {
40- type = string
41- description = " The name of this module. This is a special variable, it should be set only here and never overridden."
42- default = " kms"
43- }
44-
4535# #
4636# Variable specific to the module
4737# #
Original file line number Diff line number Diff line change 11locals {
2+ module = " backup"
3+
24 csi = format (
35 " %s-%s-%s-%s" ,
46 var. project ,
57 var. environment ,
68 var. component ,
7- " backup "
9+ var . name
810 )
911
1012 csi_underscore = replace (local. csi ," -" ," _" )
@@ -13,6 +15,7 @@ locals {
1315 var. default_tags ,
1416 {
1517 Name = local.csi
18+ Module = local.module
1619 },
1720 )
1821}
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ variable "component" {
1313 description = " The name of the tfscaffold component"
1414}
1515
16+ variable "name" {
17+ type = string
18+ description = " The variable encapsulating the name of this bucket"
19+ }
20+
1621variable "default_tags" {
1722 type = map (string )
1823 description = " Default tag map for application to all taggable resources in the module"
Original file line number Diff line number Diff line change 11locals {
2+ module = " eventpub"
3+
24 csi = replace (
35 format (
46 " %s-%s-%s-%s" ,
@@ -13,7 +15,7 @@ locals {
1315 default_tags = merge (
1416 var. default_tags ,
1517 {
16- Module = var .module
18+ Module = local .module
1719 Name = local.csi
1820 },
1921 )
Original file line number Diff line number Diff line change @@ -28,16 +28,6 @@ variable "group" {
2828 default = null
2929}
3030
31- # #
32- # Module self-identification
33- # #
34-
35- variable "module" {
36- type = string
37- description = " The name of this module. This is a special variable, it should be set only here and never overridden."
38- default = " eventpub"
39- }
40-
4131# #
4232# Variable specific to the module
4333# #
Original file line number Diff line number Diff line change 11locals {
2+ module = " kms"
3+
24 csi = format (
3- " %s-%s-%s-%s-%s " ,
5+ " %s-%s-%s-%s" ,
46 var. project ,
57 var. environment ,
68 var. component ,
7- var. module ,
89 var. name ,
910 )
1011
1112 # CSI for use in resources with an account namespace, eg IAM roles
1213 csi_account = replace (
1314 format (
14- " %s-%s-%s-%s-%s-%s " ,
15+ " %s-%s-%s-%s-%s" ,
1516 var. project ,
1617 var. region ,
1718 var. environment ,
1819 var. component ,
19- var. module ,
2020 var. name ,
2121 ),
2222 " _" ,
@@ -26,7 +26,7 @@ locals {
2626 default_tags = merge (
2727 var. default_tags ,
2828 {
29- Module = var .module
29+ Module = local .module
3030 Name = local.csi
3131 },
3232 )
Original file line number Diff line number Diff line change @@ -22,16 +22,6 @@ variable "aws_account_id" {
2222 description = " The AWS Account ID (numeric)"
2323}
2424
25- # #
26- # Module self-identification
27- # #
28-
29- variable "module" {
30- type = string
31- description = " The name of this module. This is a special variable, it should be set only here and never overridden."
32- default = " kms"
33- }
34-
3525# #
3626# Variable specific to the module
3727# #
Original file line number Diff line number Diff line change 11locals {
2+ module = " lambda"
3+
24 # Compound Scope Identifier
35 csi = replace (
46 format (
5- " %s-%s-%s-%s-%s " ,
7+ " %s-%s-%s-%s" ,
68 var. project ,
79 var. environment ,
810 var. component ,
9- var. module ,
1011 var. function_name ,
1112 ),
1213 " _" ,
@@ -16,7 +17,8 @@ locals {
1617 default_tags = merge (
1718 var. default_tags ,
1819 {
19- " Module" = var.module
20+ " Name" = local.csi
21+ " Module" = local.module
2022 },
2123 )
2224}
Original file line number Diff line number Diff line change @@ -42,12 +42,6 @@ variable "kms_key_arn" {
4242# tfscaffold variables specific to this module
4343# #
4444
45- variable "module" {
46- type = string
47- description = " The variable encapsulating the name of this module"
48- default = " lambda"
49- }
50-
5145variable "default_tags" {
5246 type = map (string )
5347 description = " A map of default tags to apply to all taggable resources within the component"
You can’t perform that action at this time.
0 commit comments