aws-amplify / aws-amplify/amplify-cli

Adding multiple triggers to s3 having different filters and events

Open
#4,861 3 comments 2 reactions 0 assignees View on GitHub
feature-request functions p4
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

>**Note**: If your feature-request is regarding the AWS Amplify Console service, please log it in the
[official AWS Amplify Console forum](https://forums.aws.amazon.com/forum.jspa?forumID=314&start=0)

**Is your feature request related to a problem? Please describe.**

I tried to add lambda triggers to my s3 bucket by doing `amplify update storage`, but I can only select one lambda function as a trigger. If you have 3 different functions that have different prefixes and also listens to different events, how do you do that with amplify?

**Describe the solution you'd like**

Allow adding multiple lambda triggers to the storage, or add `Add lambda trigger` option to `amplify update storage`, and be able to add filters to the listener and be able to listen to a specific event.

**Describe alternatives you've considered**

I've done regex against `s3.object.key` but this shouldn't really be the way to go, your listener will run every time even when it does not have to.

**Additional context**

N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.