From be48b094df1522f2f538c3f0872d4d7ec5847847 Mon Sep 17 00:00:00 2001 From: Alexis Lucattini <awlucattini@gmail.com> Date: Mon, 7 Oct 2024 15:55:55 +1100 Subject: [PATCH] CDK Nag fix --- .../deploy/constructs/cttsov2-icav2-manager/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/workload/stateless/stacks/cttso-v2-pipeline-manager/deploy/constructs/cttsov2-icav2-manager/index.ts b/lib/workload/stateless/stacks/cttso-v2-pipeline-manager/deploy/constructs/cttsov2-icav2-manager/index.ts index 55d704d0c..ba62594e8 100644 --- a/lib/workload/stateless/stacks/cttso-v2-pipeline-manager/deploy/constructs/cttsov2-icav2-manager/index.ts +++ b/lib/workload/stateless/stacks/cttso-v2-pipeline-manager/deploy/constructs/cttsov2-icav2-manager/index.ts @@ -124,7 +124,9 @@ export class Cttsov2Icav2PipelineManagerConstruct extends Construct { ); // Allow the check num running sfns lambda to list the number of running icav2 copy file sfns running - props.icav2CopyFilesStateMachineObj.grantRead(props.checkNumRunningSfnsLambdaObj); + props.icav2CopyFilesStateMachineObj.grantRead( + props.checkNumRunningSfnsLambdaObj.currentVersion + ); /* Part 2: Configure the lambdas and outputs step function