Skip to content

Commit

Permalink
Simplify cdk-nag suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiswl committed Nov 1, 2024
1 parent a496a09 commit 19f3ce5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 19f3ce5

Please sign in to comment.