AWS S3 Event Notification Not Triggering Lambda Function with JSON Input
I'm having trouble getting an AWS Lambda function to trigger when an object is uploaded to an S3 bucket. I set up an event notification on my S3 bucket to notify my Lambda function, but it's not firing as expected. The Lambda function is supposed to process JSON files, and I've followed the steps in the AWS documentation. Here's the S3 bucket event configuration I used: ```json { "LambdaFunctionConfigurations": [ { "Events": ["s3:ObjectCreated:*"], "LambdaFunctionArn": "arn:aws:lambda:us-east-1:123456789012:function:myFunction", "Filter": { "Key": { "FilterRules": [ { "Name": "suffix", "Value": "json" } ] } } } ] } ``` I’ve also attached the necessary permissions to the Lambda execution role using this policy: ```json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject" ], "Resource": "arn:aws:s3:::my-bucket-name/*" }, { "Effect": "Allow", "Action": "lambda:InvokeFunction", "Resource": "arn:aws:lambda:us-east-1:123456789012:function:myFunction" } ] } ``` Despite this, the Lambda function is not being triggered, and I don't see any errors in the logs. I've tried uploading a JSON file named `test.json` directly into the S3 bucket but there are no entries in the Lambda monitoring section. I’ve also double-checked that the Lambda function works when invoked manually. Could the scenario be related to the region settings, or is there something else I'm missing in the configuration? Any insights on what could be causing this event notification failure would be greatly appreciated.