I have a Step Function State Machine that executes some lambdas in a flow.
I only want to run the State Machine after I upload the 10 required files for my flow, which is the tricky part.
- 10 files are manually uploaded in S3 bucket
- S3 upload triggers a notification to EventBridge (need to wait for all new CSVs to be uploaded)
- EventBridge starts the State Machine
I think my current flow will not work because it will call the state machine 10 times for each file upload...
I know how to use S3 file upload to trigger a state machine like in this example but I don't see how to make sure that ALL the files are uploaded before triggering the state machine ONCE.
Is this possible to achieve? Any ideas?