I want to build a service that uses elastic transcoder. While I could build the transcoder pipeline and presets ahead of time, I would prefer to have that work done in ‘serverless deploy’
Let’s say I wanted to create a transcoder pipeline and presets for use in a lambda function, so therefore I need the lambda to know the name and ARN of the pipeline and ids for the presets.
How would I go about making sure that the pipeline and presets get created and removed at the right times and how do I pass the needed information to the lambda and possibly to the CF outputs for the stack?
In the response from your lambda backed custom resource you can return values back in Data and then (beforehand) reference that with cloudformation getAttr
@eliasisrael
Custom Resources are the way to go for things not natively supported in CFN.
Especially if it IS however supported by the AWS SDK.
For your specific example of transcoder resources. I’m actually refactoring these to deploy with SLS.
They both work great out of the box, but the UPDATE ignores OutputBucket changes which was an issue for us. I have a fix for that too.
I’ll be open sourcing the fork once I’m done which hopefully will be before EOW.