- Newest
- Most votes
- Most comments
Hello,
I tested this serverless pattern, S3 to Lambda in my aws account. https://serverlessland.com/patterns/s3-lambda
I observed a similar pattern and don't see the trigger in the Lambda console.
But I can confirm that in my S3 bucket event notification is configured to send a notification when specific events occur to Lambda. Notifications was working without issues and triggered the lambda function.
As I mentioned in a comment above, the local template is fine. When I deployed, its like the event source mapping dissapeared.
Sivaraman Selvam, can you check the template of you SAM App on the Lambda UI if you have the event source mapping?
Regards
Just walking around here to see if somebody has a kind of answer .. Could I raise a ticket about this?
Regards
you need to include the appropriate event source mapping within your AWS SAM (Serverless Application Model) template. The current SAM template lacks the configuration that links the S3 bucket to the Lambda function as an event source.
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: An AWS Serverless Application Model template describing your function.
Resources:
s3listener:
Type: AWS::Serverless::Function
Properties:
CodeUri: .
Description: ''
MemorySize: 128
Timeout: 3
Handler: app.lambda_handler
Runtime: python3.11
Architectures:
- x86_64
EphemeralStorage:
Size: 512
EventInvokeConfig:
MaximumEventAgeInSeconds: 21600
MaximumRetryAttempts: 2
PackageType: Zip
Policies:
- Statement:
- Action:
- s3:GetObject
- s3:ListBucket
- s3:GetBucketLocation
- s3:GetObjectVersion
- s3:GetLifecycleConfiguration
Resource:
- arn:aws:s3:::s3-triggers-lambda-bucket
- arn:aws:s3:::s3-triggers-lambda-bucket/*
Effect: Allow
- Effect: Allow
Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: '*'
SnapStart:
ApplyOn: None
Tags:
lambda:createdBy: SAM
RuntimeManagementConfig:
UpdateRuntimeOn: Auto
Events:
S3UploadEvent:
Type: S3
Properties:
Bucket: s3-triggers-lambda-bucket
Events: s3:ObjectCreated:*
You can see in my original post that my template has the event mapping just right here. However, when deployed, the event mapping dissapeared in the template that you can find in the Lambda UI designer.
Regards
Relevant content
- asked 2 years ago

Hi,
I don't see the S3 event source mapping in the Lambda console, but the Lambda function is triggered when I upload an object. You can see in my screenshot that I have an event notification configured in my S3 bucket to trigger the Lambda function.
I have the very same ... So, you don't know why this is happening?
Regards