Skip to content

Commit

Permalink
Merge pull request #281 from umccr/bugfix/cttso-cdk-nag-lambda-invoke…
Browse files Browse the repository at this point in the history
…-fix

Use 'currentVersion' for lambda object to resolve the cdk nag issue
  • Loading branch information
alexiswl committed May 8, 2024
2 parents 99d6e36 + b73b228 commit 0abbd06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class Cttsov2Icav2PipelineManagerConstruct extends Construct {
generate_trimmed_samplesheet_lambda_obj,
upload_samplesheet_to_cache_dir_lambda_obj,
].forEach((lambda_obj) => {
lambda_obj.grantInvoke(<iam.IRole>stateMachine.role);
lambda_obj.currentVersion.grantInvoke(<iam.IRole>stateMachine.role);
});

// Allow state machine to read/write to dynamodb table
Expand Down

0 comments on commit 0abbd06

Please sign in to comment.