Skip to content

Commit

Permalink
feat: add S3 event source with auto-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstack committed Dec 14, 2023
1 parent 1132c1a commit c83b74c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/event-sources/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ function getEventSourceNameBasedOnEvent ({
if (eventSource === 'aws:kinesis') {
return 'AWS_KINESIS_DATA_STREAM'
}
if (eventSource === 'aws:s3') {
return 'AWS_S3'
}
return 'AWS_LAMBDA_EDGE'
}
if (event.requestContext) {
Expand Down

0 comments on commit c83b74c

Please sign in to comment.