aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.51k stars 3.85k forks source link

(s3-notifications): add a StateMachine source #17472

Open emmapatterson opened 2 years ago

emmapatterson commented 2 years ago

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

teemal commented 2 years ago

Bumping this for visibility. Would be a very nice feature

kaizencc commented 2 years ago

The best thing you can do here is add a +1 to the issue and try to get some community traction on it. We're waiting to see if there's community momentum for this feature atm, and we track that with +1s.

teemal commented 2 years ago

+1

jumic commented 2 years ago

Can you check this construct? https://constructs.dev/packages/@aws-solutions-constructs/aws-s3-stepfunctions/ Does it meet the requirement?

This constructs sends S3 Event Notification to EventBridge, then triggers AWS Step Functions State Machine executions from EventBridge.

lfgraphika commented 2 years ago

+1

wakeupmh commented 8 months ago