@@ -27,6 +27,17 @@ variable in_egress
27
27
}
28
28
29
29
30
+ # ## ###################### ###
31
+ # ## [[variable]] in_vpc_id ###
32
+ # ## ###################### ###
33
+
34
+ variable in_vpc_id
35
+ {
36
+ description = " ID of umbrella VPC the security group falls under - if not set the default VPC is used."
37
+ default = " "
38
+ }
39
+
40
+
30
41
# ## ################################### ###
31
42
# ## [[variable]] in_ingress_cidr_blocks ###
32
43
# ## ################################### ###
@@ -51,54 +62,22 @@ variable in_egress_cidr_blocks
51
62
}
52
63
53
64
54
- # ## ###################### ###
55
- # ## [[variable]] in_vpc_id ###
56
- # ## ###################### ###
57
-
58
- variable in_vpc_id
59
- {
60
- description = " Mandatory VPC ID to create the security group under."
61
- }
62
-
63
-
64
65
# ## ########################### ###
65
66
# ## [[variable]] in_use_default ###
66
67
# ## ########################### ###
67
68
68
69
variable in_use_default
69
70
{
71
+ description = " By default rules are added to the default security group - false creates one first."
70
72
default = true
71
73
}
72
74
73
-
74
- # ## ################################# ###
75
- # ## [[output]] out_security_group_ids ###
76
- # ## ################################# ###
77
-
78
- output out_security_group_ids
79
- {
80
- description = " One element list with ID of either the default security group or the new one."
81
- value = [ " ${ var . in_use_default ? aws_default_security_group . default . id : aws_security_group . new . id } " ]
82
- }
83
-
84
-
85
- # ## ################################ ###
86
- # ## [[output]] out_security_group_id ###
87
- # ## ################################ ###
88
-
89
- output out_security_group_id
90
- {
91
- description = " The string ID of either the default security group or the just created new one."
92
- value = " ${ var . in_use_default ? aws_default_security_group . default . id : aws_security_group . new . id } "
93
- }
94
-
95
-
96
75
# ## ######################### ###
97
76
# ## [[variable]] in_ecosystem ###
98
77
# ## ######################### ###
99
78
100
79
variable in_ecosystem
101
80
{
102
- description = " The name of the class of ecosystem being built like kubernetes-cluster or elasticsearch-db. "
81
+ description = " The name of the class of ecosystem being built like kubernetes-cluster or rabbit-mq "
103
82
default = " eco-system"
104
83
}
0 commit comments