Skip to content

Commit b2a0096

Browse files
committed
[NDR-182] revert count
1 parent defe804 commit b2a0096

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

infrastructure/firewall.tf

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ module "firewall_waf_v2_api" {
1111
cloudfront_acl = false
1212
environment = var.environment
1313
owner = var.owner
14-
# count = local.is_sandbox ? 0 : 1
15-
api = true
14+
count = local.is_sandbox ? 0 : 1
15+
api = true
1616
}
1717

1818
resource "aws_wafv2_web_acl_association" "web_acl_association" {
@@ -27,12 +27,10 @@ resource "aws_wafv2_web_acl_association" "web_acl_association" {
2727

2828
resource "aws_wafv2_web_acl_association" "api_gateway" {
2929
resource_arn = aws_api_gateway_stage.ndr_api.arn
30-
# web_acl_arn = module.firewall_waf_v2_api[0].arn
31-
web_acl_arn = module.firewall_waf_v2_api.arn
32-
# count = local.is_sandbox ? 0 : 1
30+
web_acl_arn = module.firewall_waf_v2_api[0].arn
31+
count = local.is_sandbox ? 0 : 1
3332
depends_on = [
3433
aws_api_gateway_stage.ndr_api,
35-
# module.firewall_waf_v2_api[0]
36-
module.firewall_waf_v2_api
34+
module.firewall_waf_v2_api[0]
3735
]
3836
}

0 commit comments

Comments
 (0)