File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,25 @@ export const nagSuppressions = (stack: Stack) => {
4949 ]
5050 )
5151
52+ // Suppress S3 wildcard permissions for SyncKnowledgeBase Lambda default policy
53+ safeAddNagSuppression (
54+ stack ,
55+ "/EpsAssistMeStack/Functions/SyncKnowledgeBaseFunction/LambdaRole/DefaultPolicy/Resource" ,
56+ [
57+ {
58+ id : "AwsSolutions-IAM5" ,
59+ reason : "S3 wildcard permissions are required for Lambda to read from knowledge base documents bucket." ,
60+ appliesTo : [
61+ "Action::s3:GetBucket*" ,
62+ "Action::s3:GetObject*" ,
63+ "Action::s3:List*" ,
64+ `Resource::<StorageDocsBucket${ stackName } Docs075F648F.Arn>/*` ,
65+ `Resource::<StorageDocsBucket${ stackName } DocsF25F63F1.Arn>/*`
66+ ]
67+ }
68+ ]
69+ )
70+
5271 // Suppress API Gateway validation warning for Apis construct
5372 safeAddNagSuppression (
5473 stack ,
You can’t perform that action at this time.
0 commit comments