File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 66} from "aws-cdk-lib"
77import { EventType } from "aws-cdk-lib/aws-s3"
88import { LambdaDestination } from "aws-cdk-lib/aws-s3-notifications"
9- import { CfnPermission } from "aws-cdk-lib/aws-lambda"
109import { nagSuppressions } from "../nagSuppressions"
1110import { Apis } from "../resources/Apis"
1211import { Functions } from "../resources/Functions"
@@ -140,15 +139,6 @@ export class EpsAssistMeStack extends Stack {
140139 new LambdaDestination ( functions . functions . syncKnowledgeBase . function )
141140 )
142141
143- // Create explicit Lambda permission with guaranteed SourceAccount
144- new CfnPermission ( this , "S3ToSyncKnowledgeBaseLambdaPermission" , {
145- functionName : functions . functions . syncKnowledgeBase . function . functionArn ,
146- action : "lambda:InvokeFunction" ,
147- principal : "s3.amazonaws.com" ,
148- sourceAccount : account ,
149- sourceArn : storage . kbDocsBucket . bucket . bucketArn
150- } )
151-
152142 // Create Apis and pass the Lambda function
153143 const apis = new Apis ( this , "Apis" , {
154144 stackName : props . stackName ,
You can’t perform that action at this time.
0 commit comments