File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export class CdkWafGeoLib extends Construct {
155
155
156
156
if ( props . enableCloudWatchLogs ) {
157
157
// Create logging configuration with log group as destination
158
- new CfnLoggingConfiguration ( scope , 'webAclLoggingConfiguration' , {
158
+ const log_config = new CfnLoggingConfiguration ( scope , 'webAclLoggingConfiguration' , {
159
159
logDestinationConfigs : [
160
160
cdk . Stack . of ( this ) . formatArn ( {
161
161
arnFormat : cdk . ArnFormat . COLON_RESOURCE_NAME ,
@@ -166,7 +166,7 @@ export class CdkWafGeoLib extends Construct {
166
166
] ,
167
167
resourceArn : cfnWebACL . attrArn ,
168
168
} ) ;
169
-
169
+ log_config . node . addDependency ( log_group ) ;
170
170
new wafv2 . CfnWebACLAssociation ( this , 'WAFAssociation' , {
171
171
resourceArn : props . resourceArn ,
172
172
webAclArn : cfnWebACL . attrArn ,
You can’t perform that action at this time.
0 commit comments