aws / aws/aws-cdk

(s3-notifications): add a StateMachine source

Open
#17,472 7 comments 7 reactions 0 assignees View on GitHub
@aws-cdk/aws-s3-notifications effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Description

Add a StateMachine event source to s3 event notifications.

### Use Case

In order for an s3 event to hit the step function /state machine, you need to be able to set the event source. Currently only SQS, SNS and lambda are supported.

### Proposed Solution

Add new bucket event type:

bucket.addEventNotification(
EventType.OBJECT_CREATED,
new StateMachineDestination(this.stateMachine)
);

### Other information

_No response_

### Acknowledge

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

Contributor guide

Open the contributing guide

Research direction

Start at the bucket.addEventNotification entry point and inspect the existing SQS, SNS, and Lambda destinations, along with EventType.OBJECT_CREATED. Add StateMachineDestination support for the state machine target and verify that an S3 notification can be configured for it without breaking the existing destinations.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
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.