Skip to content

Commit

Permalink
Update_081124_1
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckingham authored and Buckingham committed Nov 8, 2024
1 parent c9a1ac7 commit 6725e67
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions terraform/environments/ppud/security_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

0 comments on commit 6725e67

Please sign in to comment.