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 ff0a764 commit 29384c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ resource "aws_security_group_rule" "egress" {
cidr_blocks = ["0.0.0.0/0"]
security_group_id = join("", aws_security_group.default.*.id)
}
#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 All @@ -58,7 +59,7 @@ resource "aws_security_group_rule" "egress_ipv6" {
ipv6_cidr_blocks = ["::/0"]
security_group_id = join("", aws_security_group.default.*.id)
}
#defsec:ignore:aws-ec2-no-public-egress-sgr
#tfsec:ignore:aws-ec2-no-public-egress-sgr
resource "aws_security_group_rule" "ingress" {
count = length(var.allowed_ip) > 0 == true && length(var.sg_ids) < 1 ? length(compact(var.allowed_ports)) : 0

Expand Down

0 comments on commit 29384c0

Please sign in to comment.