Permalink
Find file Copy path
976e341 Nov 30, 2018
1 contributor

Users who have contributed to this file

28 lines (23 sloc) 488 Bytes
service: gifmaker
frameworkVersion: ">=1.34.0 <2.0.0"
provider:
name: aws
runtime: nodejs8.10
iamRoleStatements:
- Effect: Allow
Action:
- s3:PutObject
- s3:GetObject
Resource: "arn:aws:s3:::${self:custom.bucket}/*"
functions:
mkgif:
handler: handler.mkgif
events:
- s3: ${self:custom.bucket}
layers:
- {Ref: FfmpegLambdaLayer}
layers:
ffmpeg:
path: layer
custom:
bucket: ${env:BUCKET, 'ffmpeg-layer-gif-maker'}