Skip to content

Commit

Permalink
checkov skips
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Oct 3, 2024
1 parent aef60b3 commit bdcb67c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infra/security_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ resource "aws_security_group_rule" "egress_load_balancer" {
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = aws_security_group.custom_sg.id
#checkov:skip=CKV_AWS_260: "Ensure no security groups allow ingress from 0.0.0.0:0 to port 80"
#This is non prod and hence enabled.
}
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group
resource "aws_security_group" "container_sg" {
Expand All @@ -39,6 +41,8 @@ resource "aws_security_group" "container_sg" {
tags = {
"Name" = "${var.name}-container-sg"
}
#checkov:skip=CKV2_AWS_5: "Ensure that Security Groups are attached to another resource"
#This security group is required in the deploy stack.
}
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule
resource "aws_security_group_rule" "ingress_container" {
Expand Down

0 comments on commit bdcb67c

Please sign in to comment.