File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ resource "aws_subnet" "admin" {
10
10
{
11
11
" Name" = " Admin Subnet"
12
12
},
13
+ var. extra_tags_admin_subnet
13
14
)
14
15
}
15
16
@@ -30,6 +31,7 @@ resource "aws_subnet" "public" {
30
31
{
31
32
" Name" = " Public Subnet"
32
33
},
34
+ var. extra_tags_public_subnet
33
35
)
34
36
}
35
37
@@ -50,6 +52,7 @@ resource "aws_subnet" "private" {
50
52
{
51
53
" Name" = " Private Subnet"
52
54
},
55
+ var. extra_tags_private_subnet
53
56
)
54
57
}
55
58
Original file line number Diff line number Diff line change @@ -52,7 +52,28 @@ variable "vpc_enable_classiclink" {
52
52
}
53
53
54
54
# # Tagging Settings
55
- variable "extra_tags" {
55
+ variable "extra_tags_global" {
56
+ type = map (string )
57
+ description = " Map of tags to apply in addition to already predefined tags of the module."
58
+ default = {}
59
+ }
60
+
61
+ # # Tagging Settings
62
+ variable "extra_tags_admin_subnet" {
63
+ type = map (string )
64
+ description = " Map of tags to apply in addition to already predefined tags of the module."
65
+ default = {}
66
+ }
67
+
68
+ # # Tagging Settings
69
+ variable "extra_tags_public_subnet" {
70
+ type = map (string )
71
+ description = " Map of tags to apply in addition to already predefined tags of the module."
72
+ default = {}
73
+ }
74
+
75
+ # # Tagging Settings
76
+ variable "extra_tags_private_subnet" {
56
77
type = map (string )
57
78
description = " Map of tags to apply in addition to already predefined tags of the module."
58
79
default = {}
@@ -65,7 +86,7 @@ locals {
65
86
" Author" = " Fairwinds"
66
87
}
67
88
68
- tags = merge (local. default_tags , var. extra_tags )
89
+ tags = merge (local. default_tags , var. extra_tags_global )
69
90
avail_zones_list = split (" ," , var. availability_zones )
70
91
}
71
92
You can’t perform that action at this time.
0 commit comments