@@ -27,6 +27,17 @@ variable in_egress
2727}
2828
2929
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+
3041# ## ################################### ###
3142# ## [[variable]] in_ingress_cidr_blocks ###
3243# ## ################################### ###
@@ -51,54 +62,22 @@ variable in_egress_cidr_blocks
5162}
5263
5364
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-
6465# ## ########################### ###
6566# ## [[variable]] in_use_default ###
6667# ## ########################### ###
6768
6869variable in_use_default
6970{
71+ description = " By default rules are added to the default security group - false creates one first."
7072 default = true
7173}
7274
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-
9675# ## ######################### ###
9776# ## [[variable]] in_ecosystem ###
9877# ## ######################### ###
9978
10079variable in_ecosystem
10180{
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 "
10382 default = " eco-system"
10483}
0 commit comments