Skip to content

Commit

Permalink
feat: update and added resource description
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Jun 6, 2023
1 parent b9b1b1e commit 65c85ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Expand Up @@ -38,7 +38,7 @@ data "aws_security_group" "existing" {
##----------------------------------------------------------------------------------
## Below resources will create SECURITY-GROUP-RULE and its components.
##----------------------------------------------------------------------------------
#tfsec:ignore:aws-ec2-no-public-egress-sgr.
#tfsec:ignore:aws-ec2-no-public-egress-sgr
resource "aws_security_group_rule" "egress" {
count = (var.enable_security_group == true && length(var.sg_ids) < 1 && var.is_external == false && var.egress_rule == true) ? 1 : 0

Expand All @@ -49,7 +49,7 @@ resource "aws_security_group_rule" "egress" {
cidr_blocks = ["0.0.0.0/0"]
security_group_id = join("", aws_security_group.default.*.id)
}

Check notice

Code scanning / defsec

Missing description for security group rule. Note

Security group rule does not have a description.
#tfsec:ignore:aws-ec2-no-public-egress-sgr.
#tfsec:ignore:aws-ec2-no-public-egress-sgr
resource "aws_security_group_rule" "egress_ipv6" {
count = (var.enable_security_group == true && length(var.sg_ids) < 1 && var.is_external == false) && var.egress_rule == true ? 1 : 0

Expand Down

0 comments on commit 65c85ef

Please sign in to comment.