remotion icon indicating copy to clipboard operation
remotion copied to clipboard

EventBridge Support

Open shellscape opened this issue 11 months ago • 2 comments

Feature Request 🛍️

Was curious what it would take to wire up EventBridge support as an alternative to using webhooks for notifications.

Use Case

We leverage remotion in an AWS environment which makes frequent use of EventBridge. We had to spin up a small lambda+apigateway service to handle the webhook completion notifications from remotion. That webhook lambda is a level of abstraction that we'd rather do away with, since all it does is send an event to EventBridge.

Possible Solution

Remotion is lambda-based, and it would make sense that integration with other parts of the AWS ecosystem would be desirable. In particular, lambdas ship with the aws-sdk readily available, so sending an event to an EventBridge bus seems like it would be a low-effort operation.

Only potential gotchas I could think of off-hand would be permissions, but that could reasonably stated in documentation and left up to the user.

shellscape avatar Mar 20 '24 19:03 shellscape

I'm down with the idea!

Similar to other features, we can document to add more permissions if one wants to enable the feature.

JonnyBurger avatar Mar 21 '24 07:03 JonnyBurger

@shellscape assuming you are using renderMediaOnLambda().

@JonnyBurger would you think that this will need a new field, this will push the render success or failure to the the following destination.

EventBridge.

renderMediaOnLambda({ destination: { type: "EventBridge", source: "lambdarenderer", customData: { test: "dd" }. } })

SQS renderMediaOnLambda({ destination: { type: "SQS", queue: "lambdarenderer", customData: { test: "dd" }. } })

HTTP renderMediaOnLambda({ destination: { type: "HTTP", queue: "lambdarenderer", authorization: { userName: "", password: "" }, customData: { test: "dd" }. } })

just an idea.

alexfernandez803 avatar Apr 02 '24 08:04 alexfernandez803