From 09a256d8106ba2fcb8bc0c086d61348d728872e1 Mon Sep 17 00:00:00 2001 From: daknhh Date: Tue, 21 Dec 2021 16:39:48 +0100 Subject: [PATCH] Fix ExcludeRules Bug --- lib/plattform-wafv2-cdk-automation-stack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plattform-wafv2-cdk-automation-stack.ts b/lib/plattform-wafv2-cdk-automation-stack.ts index 3ba9a2a8..8a352ded 100644 --- a/lib/plattform-wafv2-cdk-automation-stack.ts +++ b/lib/plattform-wafv2-cdk-automation-stack.ts @@ -266,7 +266,7 @@ export class PlattformWafv2CdkAutomationStack extends cdk.Stack { let OverrideAction; for(mangedrule of props.config.WebAcl.ManagedRuleGroups){ if(mangedrule.ExcludeRules){ - ExcludeRules = mangedrule.ExcludeRules + ExcludeRules = toCamel(mangedrule.ExcludeRules) OverrideAction = mangedrule.OverrideAction } else{ @@ -455,7 +455,7 @@ export class PlattformWafv2CdkAutomationStack extends cdk.Stack { let OverrideAction; for(mangedrule of props.config.WebAcl.ManagedRuleGroups){ if(mangedrule.ExcludeRules){ - ExcludeRules = mangedrule.ExcludeRules + ExcludeRules = toCamel(mangedrule.ExcludeRules) OverrideAction = mangedrule.OverrideAction } else{