Skip to content

Commit

Permalink
Fix ports openes (#11)
Browse files Browse the repository at this point in the history
* Fix ports openes

* Pin elasticsearch

* Fix ports openes
  • Loading branch information
goruha authored Oct 8, 2018
1 parent 65d3c78 commit d618284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "aws_security_group_rule" "ingress_security_groups" {
description = "Allow inbound traffic from Security Groups"
type = "ingress"
from_port = 0
to_port = 0
to_port = 65535
protocol = "tcp"
source_security_group_id = "${element(var.security_groups, count.index)}"
security_group_id = "${join("", aws_security_group.default.*.id)}"
Expand All @@ -33,7 +33,7 @@ resource "aws_security_group_rule" "ingress_cidr_blocks" {
description = "Allow inbound traffic from CIDR blocks"
type = "ingress"
from_port = 0
to_port = 0
to_port = 65535
protocol = "tcp"
cidr_blocks = ["${var.allowed_cidr_blocks}"]
security_group_id = "${join("", aws_security_group.default.*.id)}"
Expand All @@ -44,7 +44,7 @@ resource "aws_security_group_rule" "egress" {
description = "Allow all egress traffic"
type = "egress"
from_port = 0
to_port = 0
to_port = 65535
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${join("", aws_security_group.default.*.id)}"
Expand Down

0 comments on commit d618284

Please sign in to comment.