Search code examples
amazon-web-servicesaws-cloudformationamazon-elastic-transcoder

Can AWS CloudFormation call the AWS API?


I'm trying to use CloudFormation to create my AWS environment and part of that is setting up Elastic Transcoder. Unfortunately it seems like ET is not part of the existing CloudFormation system, but it can be created via API calls. Is there any way to call the API from CloudFormation?


Solution

  • You can create custom resources, in particular you can create lambda backed custom resources.

    With these your lambda function is called with data from the template passed in the event object and a presigned s3 URL. You do whatever work you need to do and then write a JSON document to that presigned URL. The JSON document describes the created resource. This document contains some sort of identifier for the created resource (used for update and delete requests) and any data about the resource that the remainder of your template might need.