Skip to content

Commit

Permalink
feat(construct): added cdk nag for bad result
Browse files Browse the repository at this point in the history
  • Loading branch information
dinsajwa committed Feb 25, 2025
1 parent 202743e commit ef0633e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,14 @@ export class BdaResultsambda extends lambda.Function {
if (this.role) {
props.outputBucket.grantReadWrite(this.role);
}

NagSuppressions.addResourceSuppressions(
role,
[{
id: 'AwsSolutions-IAM5',
reason: 'Lambda needs read access to process files from the input bucket',
}],
true,
);
}
}

0 comments on commit ef0633e

Please sign in to comment.