diff --git a/terraform/environments/ppud/security_group.tf b/terraform/environments/ppud/security_group.tf index bc6791aee1a..c341c214913 100644 --- a/terraform/environments/ppud/security_group.tf +++ b/terraform/environments/ppud/security_group.tf @@ -969,6 +969,17 @@ resource "aws_security_group" "docker-build-server" { ingress = [] } +resource "aws_security_group_rule" "docker-build-server-Ingress" { + description = "Rule to allow port 25 traffic inbound" + count = local.is-production == true ? 1 : 0 + type = "ingress" + from_port = 25 + to_port = 25 + protocol = "tcp" + cidr_blocks = [data.aws_vpc.shared.cidr_block] + security_group_id = aws_security_group.docker-build-server[0].id +} + resource "aws_security_group_rule" "docker-build-server-Egress" { description = "Rule to allow port 443 traffic outbound" count = local.is-production == true ? 1 : 0 @@ -1001,3 +1012,14 @@ resource "aws_security_group_rule" "docker-build-server-Egress-2" { cidr_blocks = ["0.0.0.0/0"] security_group_id = aws_security_group.docker-build-server[0].id } + +resource "aws_security_group_rule" "docker-build-server-Egress-3" { + description = "Rule to allow port 25 traffic outbound" + count = local.is-production == true ? 1 : 0 + type = "egress" + from_port = 25 + to_port = 25 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] + security_group_id = aws_security_group.docker-build-server[0].id +} \ No newline at end of file