Skip to content

numo-labs/lambda-taggable-s3-event-listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-taggable-s3-event-listener

Codeship codecov Dependency Status devDependency Status npm version

Listens for the create event in s3 bucket and triggers the indexer lambdas.

Why?

The taggable system uses S3 as the primary data store. The original plan was to trigger two "indexer" lambdas.
However we discovered that we can only have one Lambda listen to each S3 event ...

cannot-trigger-two-lambdas-from-same-s3-event https://forums.aws.amazon.com/thread.jspa?threadID=214437 (discovered by Detective [@jruts])

What?

Trigger more than one Lambda when an S3 Event is fired.

How?

It's pretty simple, just checkout out index.js

Environment Variables

To run/develop/test this Lambda locally you will need to create a file called .env in the root of the project and include the following Environment Variables:

export AWS_REGION=eu-west-1
export AWS_IAM_ROLE=arn:aws:iam::12346789:role/dummy
export AWS_ACCESS_KEY_ID=YourAccessKeyHere
export AWS_SECRET_ACCESS_KEY=YourSecret

image

About

👂 Listens for the create event in s3 bucket and triggers the indexer lambdas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published