Skip to content

Commit

Permalink
Use 'currentVersion' for lambda object to resolve the cdk nag issue
Browse files Browse the repository at this point in the history
Related issue: aws/aws-cdk#20177
  • Loading branch information
alexiswl committed May 8, 2024
1 parent 99d6e36 commit b73b228
Showing 1 changed file with 1 addition and 1 deletion.
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 b73b228

Please sign in to comment.