Trying to implement same functionality: using ImageMagic Application from AWS Serverless Application
Repository. See the following example: https://github.com/aws-samples/lambda-refarch-imagerecognition
ImageMagick for AWS Lambda from https://github.com/serverlesspub/imagemagick-aws-lambda-2
Didn’t found in the Serverless AWS - Layers documentation example how to deploy Layers from AWS Serverless Application
Repository. See original cloud formation template here:
ImageMagick:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:145266761615:applications/image-magick-lambda-layer
SemanticVersion: 1.0.0
ExtractImageMetadataFunction:
Properties:
CodeUri:
../lambda-functions/extract-image-metadata
Description: "Extract image metadata such as format, size, geolocation, etc."
Handler: index.handler
MemorySize: 1024
Timeout: 200
Role:
!GetAtt BackendProcessingLambdaRole.Arn
Runtime: nodejs12.x
Layers:
- !GetAtt ImageMagick.Outputs.LayerVersion
Type: AWS::Serverless::Function
Please help me to implement similar behavior with Serverless Framework