iandow / mediainfo_aws_lambda

AWS Lambda function for MediaInfo
17 stars 13 forks source link

Possible using AWS SAM or CloudFormation? #5

Open hristod opened 3 years ago

hristod commented 3 years ago

I was wondering if this is possible to build using CloudFormation or AWS SAM. I'm currently learning SAM, and I am not experienced enough to be able to answer the question myself :) I am wondering particularly about building MediaInfo as a Lambda layer and publishing it on AWS in a SAM/CloudFormation template using a makefile.

Cheers!

iandow commented 3 years ago

I think you're confusing some semantics. It is not possible to "build" (i.e. compile) a lambda layer with CloudFormation. Rather, CloudFormation is used to "deploy" source code to AWS Lambda, and it allows you to specify an existing Lambda layer with the Lambda function definition. Here's a reference for that:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers