Skip to content

Commit a8bc8b1

Browse files
committed
Temporary suppression for AwsSolutions-L1. Will require an update to cdk-nag and Lambda runtime before removing this. Current Lambda runtime is Python 3.10, cdk-nag is expecting 3.11
1 parent fac0969 commit a8bc8b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

BackendComponentSamples/bin/backend_component_samples.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ Aspects.of(app).add(new AwsSolutionsChecks());
4646

4747
// Add nag suppresssion for AwsSolutions-EC23
4848
NagSuppressions.addStackSuppressions(nodeJsFargateStack, [
49-
{ id: 'AwsSolutions-EC23', reason: 'We have to allow 0.0.0.0/0 for the ALB for game client access' }
49+
{ id: 'AwsSolutions-EC23', reason: 'We have to allow 0.0.0.0/0 for the ALB for game client access' },
50+
{ id: 'AwsSolutions-L1', reason: 'Temporary suppression for Lambda runtime complaint, will remove once fixed' }
5051
]);

CustomIdentityComponent/bin/custom_identity_component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ var identityComponentStack = new CustomIdentityComponentStack(app, 'CustomIdenti
5959
NagSuppressions.addStackSuppressions(identityComponentStack, [
6060
{ id: 'AwsSolutions-APIG4', reason: 'The API has to be publicly accessible as it is built for user login and authentication for custom identities.' },
6161
{ id: 'AwsSolutions-COG4', reason: 'The API cannot use Cognito User Pools as it is an API built for login and authentication for custom identities.' },
62+
{ id: 'AwsSolutions-L1', reason: 'Temporary suppression for Lambda runtime complaint, will remove once fixed' }
6263
]);

0 commit comments

Comments
 (0)