aws / aws/chalice

Feature Request: Multiple Sufix/Prefix on S3 Event

Open
#1,414 2 comments 2 reactions 0 assignees View on GitHub
feature-request
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

It would be a nice feature if the **on_s3_event** could receive a list of **prefix**/**suffix**, and this would create X triggers for the specified Lambda. At this time, the only option is to create one trigger by decorator and the others by hand.

```
@app.on_s3_event(bucket=BUCKET_NAME, suffix=[".jpg", ".png", ".svg"])
def function_name(event: S3Event):
pass
```

Contributor guide

Open the contributing guide

Research direction

Start at the on_s3_event entry point and trace how its prefix and suffix arguments become S3-to-Lambda triggers. Confirm how existing single-value behavior works; done means list-valued prefixes and suffixes create the requested triggers without breaking the current decorator usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.