From 19f3ce56c6dbad9b237310587f9cf556774c093f Mon Sep 17 00:00:00 2001 From: Alexis Lucattini Date: Fri, 1 Nov 2024 18:12:46 +1100 Subject: [PATCH] Simplify cdk-nag suppression --- .../part_2/cttso-v2-output-to-pieriandx-ready-event/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/workload/stateless/stacks/stacky-mcstackface/glue-constructs/nails/part_2/cttso-v2-output-to-pieriandx-ready-event/index.ts b/lib/workload/stateless/stacks/stacky-mcstackface/glue-constructs/nails/part_2/cttso-v2-output-to-pieriandx-ready-event/index.ts index a60267db0..99c3888a3 100644 --- a/lib/workload/stateless/stacks/stacky-mcstackface/glue-constructs/nails/part_2/cttso-v2-output-to-pieriandx-ready-event/index.ts +++ b/lib/workload/stateless/stacks/stacky-mcstackface/glue-constructs/nails/part_2/cttso-v2-output-to-pieriandx-ready-event/index.ts @@ -165,9 +165,8 @@ export class Cttsov2CompleteToPieriandxConstruct extends Construct { // FIXME - cannot get the 'current' version of an IFunction object NagSuppressions.addResourceSuppressions(getDataFromRedCapPyLambdaObj, [ { - id: 'AwsSolutions-IAM5[Resource::*', + id: 'AwsSolutions-IAM5', reason: 'Cannot get latest version of redcap lambda function ($LATEST) will not work', - appliesTo: [`Resource::arn:aws:lambda:::function:${props.redcapLambdaObj.functionName}*`], }, ]); props.redcapLambdaObj.grantInvoke(getDataFromRedCapPyLambdaObj.currentVersion);