File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
modules/swarm-security-group Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ variable "tag" {
11
11
variable "cluster_size" {
12
12
type = number
13
13
description = " Number of nodes in the cluster"
14
- default = 2
14
+ default = 3
15
15
}
Original file line number Diff line number Diff line change @@ -129,3 +129,25 @@ resource "aws_security_group_rule" "swarm_sgr_12" {
129
129
cidr_blocks = [" 0.0.0.0/0" ]
130
130
131
131
}
132
+
133
+ resource "aws_security_group_rule" "swarm_sgr_13" {
134
+ security_group_id = var. security_group_id
135
+
136
+ type = " ingress"
137
+ from_port = 0
138
+ to_port = 49153
139
+ protocol = " tcp"
140
+ cidr_blocks = [" 0.0.0.0/0" ]
141
+
142
+ }
143
+
144
+ resource "aws_security_group_rule" "swarm_sgr_14" {
145
+ security_group_id = var. security_group_id
146
+
147
+ type = " egress"
148
+ from_port = 0
149
+ to_port = 49153
150
+ protocol = " tcp"
151
+ cidr_blocks = [" 0.0.0.0/0" ]
152
+
153
+ }
You can’t perform that action at this time.
0 commit comments