Closed greenpau closed 1 year ago
this.instance = lambdaFunc;
Are you adding permissions to the lambda function outside of the construct? It doesn't look like you've added any permissions to the Lambda function at the time of suppression so we may be seeing an error related to order of operations.
Are you adding permissions to the lambda function outside of the construct?
@dontirun , I am adding suppression inside the construct.
It doesn't look like you've added any permissions to the Lambda function at the time of suppression so we may be seeing an error related to order of operations.
These permission are there by default. The role for cloudwatch logs with default policy (ServiceRole/DefaultPolicy/Resource
) gets created as part of lambda.Function
.
I tried recreating this locally ,but I'm not seeing any AwsSolutions-IAM5
errors. Do you have a snippet for the stack that is using this construct?
Closing due to inactivity
General Issue
Failed to suppress a finding
The Question
I have the following construct:
One of the findings is:
I attempted to suppress it:
However, the suppression did not work. Any advice?
cdk-nag version
2.15.3
Language
Typescript
Other information
No response