Skip to content

Commit 80c8b40

Browse files
author
“Subramanian
committed
Fix checkov warnings / lint warnings
1 parent cb7f03d commit 80c8b40

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/ec2/sg.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
resource "aws_security_group" "ecs_sg" {
22
#checkov:skip=CKV2_AWS_5:Security group is attached to another resource
3+
#checkov:skip=CKV_AWS_382: "Ensure no security groups allow egress from 0.0.0.0:0 to port -1"
34
name = "ecs-sg-${var.name}"
45
description = "Allow inbound traffic"
56
vpc_id = data.aws_vpc.default.id
@@ -38,6 +39,7 @@ resource "aws_security_group" "lb_public_sg" {
3839
}
3940

4041
resource "aws_security_group_rule" "lb_sg_allow_all" {
42+
#checkov:skip=CKV_AWS_382: "Ensure no security groups allow egress from 0.0.0.0:0 to port -1"
4143
description = "Allow all outbound traffic"
4244
type = "egress"
4345
from_port = 0

examples/fargate/sg.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
resource "aws_security_group" "ecs_sg" {
22
#checkov:skip=CKV2_AWS_5:Security group is attached to another resource
3+
#checkov:skip=CKV_AWS_382: "Ensure no security groups allow egress from 0.0.0.0:0 to port -1"
34
name = "ecs-sg-${var.name}"
45
description = "Allow inbound traffic"
56
vpc_id = data.aws_vpc.default.id
@@ -38,6 +39,7 @@ resource "aws_security_group" "lb_public_sg" {
3839
}
3940

4041
resource "aws_security_group_rule" "lb_sg_allow_all" {
42+
#checkov:skip=CKV_AWS_382: "Ensure no security groups allow egress from 0.0.0.0:0 to port -1"
4143
description = "Allow all outbound traffic"
4244
type = "egress"
4345
from_port = 0

0 commit comments

Comments
 (0)