Skip to content

Commit

Permalink
Fix ingress (#8)
Browse files Browse the repository at this point in the history
* Fix ingress

* Added rds as backing service

* Fix ingress

* Fix ingress
  • Loading branch information
goruha authored Oct 3, 2018
1 parent 2a3759a commit 4eb9a7d
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 @@ -23,7 +23,7 @@ resource "aws_security_group_rule" "ingress_security_groups" {
type = "ingress"
from_port = 0
to_port = 0
protocol = "-1"
protocol = "tcp"
source_security_group_id = "${element(var.security_groups, count.index)}"
security_group_id = "${join("", aws_security_group.default.*.id)}"
}
Expand All @@ -34,7 +34,7 @@ resource "aws_security_group_rule" "ingress_cidr_blocks" {
type = "ingress"
from_port = 0
to_port = 0
protocol = "-1"
protocol = "tcp"
cidr_blocks = ["${var.allowed_cidr_blocks}"]
security_group_id = "${join("", aws_security_group.default.*.id)}"
}
Expand All @@ -45,7 +45,7 @@ resource "aws_security_group_rule" "egress" {
type = "egress"
from_port = 0
to_port = 0
protocol = "-1"
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${join("", aws_security_group.default.*.id)}"
}
Expand Down

0 comments on commit 4eb9a7d

Please sign in to comment.