Skip to content

Commit

Permalink
fix: cidr blocks arrays for ec2 module
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Dec 10, 2024
1 parent 863ae72 commit adf63e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf/modules/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ resource "aws_security_group_rule" "ec2_sg_ingress" {
from_port = var.ingress_rules[count.index].from_port
to_port = var.ingress_rules[count.index].to_port
protocol = var.ingress_rules[count.index].protocol
cidr_blocks = [var.ingress_rules[count.index].cidr_blocks]
ipv6_cidr_blocks = [var.ingress_rules[count.index].ipv6_cidr_blocks]
cidr_blocks = var.ingress_rules[count.index].cidr_blocks
ipv6_cidr_blocks = var.ingress_rules[count.index].ipv6_cidr_blocks
security_group_id = aws_security_group.ec2_sg.id
}

Expand Down

0 comments on commit adf63e5

Please sign in to comment.