aws-amplify / aws-amplify/amplify-cli

Allow storage trigger filters

Open
#2,268 2 comments 6 reactions 1 assignee Claimed by @josefaidt View on GitHub
feature-request pending-review storage
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

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

Storage Triggers currently invoke the Lambda function on _any_ `ObjectCreated` or `ObjectRemoved` event. This means that the function will be triggered multiple times for common use cases such as creating an image thumbnail. As part of setup, suggest adding an optional field to specify a custom prefix.

**Describe the solution you'd like**

Allow me to control when a trigger is invoked using the S3 Notification Filter (AWS::S3::Bucket NotificationFilter) or a simplified version that allows me to specify a string prefix.

**Describe alternatives you've considered**

Multiple buckets, one with the trigger and one without, would also be an option but not supported today.

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.