Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
fix: resolved egress related tfsec issues (#621)
Browse files Browse the repository at this point in the history
Co-authored-by: nabil.aziz <[email protected]>
  • Loading branch information
n7z2 and nabil.aziz authored Aug 19, 2022
1 parent 82c3c3e commit b11514b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/environment/aws/code-services/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -360,16 +360,17 @@ resource "aws_iam_role_policy_attachment" "event_mapper_role_policy_attachment"
role = aws_iam_role.event_mapper_role.name
}

#tfsec:ignore:aws-vpc-no-public-egress-sg
#tfsec:ignore:aws-vpc-no-public-egress-sgr
resource "aws_security_group" "codebuild_security_group" {
name = "codebuild-egress"
vpc_id = data.aws_vpc.lead_vpc.id
description = "Allow outbound traffic"

egress {
from_port = 0
protocol = "-1"
to_port = 0
description = "Allow outbound traffic"
from_port = 0
protocol = "-1"
to_port = 0
cidr_blocks = [
"0.0.0.0/0"
]
Expand Down

0 comments on commit b11514b

Please sign in to comment.