Skip to content

Commit

Permalink
feat: open acl ports for acl
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed May 24, 2022
1 parent 383a864 commit dca744f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions terraform/modules/shuttle/networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ resource "aws_internet_gateway" "public" {
vpc_id = aws_vpc.backend.id
}

resource "aws_network_acl" "unreasonable" {
vpc_id = aws_vpc.backend.id

egress {
protocol = "tcp"
rule_no = 100
action = "allow"
cidr_block = "10.0.0.0/16"
from_port = 0
to_port = 65535
}
resource "aws_network_acl_rule" "postgres" {
network_acl_id = aws_vpc.backend.default_network_acl_id
rule_number = 10
egress = false
protocol = "tcp"
rule_action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 5432
to_port = 5432
}

ingress {
protocol = "tcp"
rule_no = 100
action = "allow"
cidr_block = "10.0.0.0/16"
from_port = 0
to_port = 65535
}
resource "aws_network_acl_rule" "mysql" {
network_acl_id = aws_vpc.backend.default_network_acl_id
rule_number = 11
egress = false
protocol = "tcp"
rule_action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 3306
to_port = 3306
}

resource "aws_security_group" "unreasonable" {
Expand Down

0 comments on commit dca744f

Please sign in to comment.