Skip to content

Commit

Permalink
Merge pull request #34 from DNXLabs/fix/aws-firewall-dependencies
Browse files Browse the repository at this point in the history
fix resource rule dependencies inside of network-firewall
  • Loading branch information
jeremiasroma authored Oct 31, 2022
2 parents 9d1ff0c + 0069e84 commit 206169c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions network-firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ resource "aws_networkfirewall_firewall_policy" "default" {
resource_arn = stateful_rule_group_reference.value.arn
}
}
stateful_rule_group_reference {
resource_arn = aws_networkfirewall_rule_group.stateful_default[0].arn
dynamic "stateful_rule_group_reference" {
for_each = aws_networkfirewall_rule_group.stateful_default
content {
resource_arn = stateful_rule_group_reference.value.arn
}
}
}
}
Expand Down

0 comments on commit 206169c

Please sign in to comment.