Skip to content

Commit e2561e3

Browse files
committed
Following localized terraform files naming convention.
1 parent 3641196 commit e2561e3

File tree

4 files changed

+38
-34
lines changed

4 files changed

+38
-34
lines changed
File renamed without changes.

security.group-outputs.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
################ ################################################## ########
3+
################ Module [[[security group]]] Output Variables List. ########
4+
################ ################################################## ########
5+
6+
### ################################# ###
7+
### [[output]] out_security_group_ids ###
8+
### ################################# ###
9+
10+
output out_security_group_ids
11+
{
12+
description = "One element list with ID of either the default security group or the new one."
13+
value = [ "${ var.in_use_default ? aws_default_security_group.default.id : aws_security_group.new.id }" ]
14+
}
15+
16+
17+
### ################################ ###
18+
### [[output]] out_security_group_id ###
19+
### ################################ ###
20+
21+
output out_security_group_id
22+
{
23+
description = "The string ID of either the default security group or the just created new one."
24+
value = "${ var.in_use_default ? aws_default_security_group.default.id : aws_security_group.new.id }"
25+
}
File renamed without changes.

security.groups-vars.tf renamed to security.group-variables.tf

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -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

6869
variable 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

10079
variable 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

Comments
 (0)