Convert mp4/mov to gif (merged with itself to produce bouncing effect) or img if thumbnail length > video length
cd
to project root dirnpm install
zip -r ~/lambda.zip index.js node_modules package-lock.json package.json
- Upload
~/lambda.zip
to an S3 bucket (which must be in the same region as the Lambda) - Create cloudformation stack using
main.yaml
LambdaS3Bucket
The S3 bucket where~/lambda.zip
is uploaded inStep #4
above.LambdaS3Key
The S3 filename which is uploaded into S3 inStep #4
above.ThumbnailLength
The duration of the GIF file