My elixir/phoenix app is running on DigitalOcean and I have AWS for S3 and MediaConvert.
So now I got a simple Lambda generating HLS content using this:
Which works great, but once I have submitted a job I need to know whether it’s in Error or Complete state.
I’ve seen that MediaConvert generates CloudWatch events, but I cannot tell you can get CloudWatch to send a POST(which would be ideal to send to my phoenix endpoint, I think).
I noticed that ex_aws has a MediaConvert service module but the documentation is a little sparse. For instance, I cannot tell if
list_jobs() will allow me to filter on Error and Complete. Besides, I would like to avoid polling if possible.
I’m not terribly experienced with backend development(I come from the Mac/iOS development world) so I don’t know if there is a conventional way to approach this.