CDK reference for triggering lambda on S3 events.
CDK reference for creating a lambda function.
Write lambda function handler in Kotlin - Sample.
Sample S3 notification which will be received as event parameter in the handler. Read the event as per use case and perform the required actions in the handler.
You will also need to create the required IAM roles / policies. This is an example of doing it via the console. You can refer cdk documentation to create these roles via code.
AWS Lambda & S3 Integration | Automatic trigger Amazon Lambda function on s3 eventasked 3 months ago
S3 Lambda Function slower than event triggerAccepted Answerasked 3 years ago
AWS Lambda Function Triggers on S3 Event, But only Once in About 30 Minsasked 3 years ago
Enable Lambda triggerAccepted Answerasked 6 months ago
Failure handling between S3 trigger and Lambdaasked 7 months ago
How to wait to trigger Lambda function until specific files are uploadedAccepted Answerasked 9 months ago
Do I use Lambda InvokeAsync or Amazon SQS event source for extracting data from Amazon S3?Accepted Answerasked 2 years ago
Lambda function for moving files from S3 bucket to FSxasked 4 months ago
Cannot access S3 bucket using flask+lambdaAccepted Answerasked 2 months ago
can a s3 object creation event trigger an existing fargate job?asked 2 months ago