lambda-packager | AWS Docker container that is used to package | Continuous Deployment library
kandi X-RAY | lambda-packager Summary
kandi X-RAY | lambda-packager Summary
An AWS Docker container that is used to package lambda zip files for deployment
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create multiple artifacts from a manifest file
- Validates a manifest file
- Extract container variables from environment variables
lambda-packager Key Features
lambda-packager Examples and Code Snippets
Community Discussions
Trending Discussions on lambda-packager
QUESTION
I'm trying to use the Sharp library in AWS Lambda but it requires the module be compiled for the lambda environment. The instructions say to create an ec2 instance and compile it on there - but I noticed that there are a few tools to help with that but they are all at least a year old with no maintenance. Is there a package that comes with Serverless, or something that's considered the standard way now?
I've found these but they are all at least a year old since a commit
https://github.com/node-hocus-pocus/thaumaturgy
https://github.com/Max-Kolodezniy/aws-lambda-build
https://github.com/tomdale/lambda-packager
Maybe there is a directory somewhere where I can just download a precompiled Sharp library for AWS lambda?
...ANSWER
Answered 2017-Apr-26 at 08:18I made it work using sharp-0.17.3-aws-linux-x64-node-6.10.1.tar.gz tarball, that was created on AWS EC2 instance running Nodejs 6.10.1. The tarball contains node_modules/
directory with sharp
system binaries (libvips library) specific to the Lambda execution environment.
Project structure
To avoid conflicts between my local node_modules/
(Nodejs 7.5 on Mac) and node_modules/
inside the tarball (Nodejs 6.10 on Linux), I'm creating my Lambda service under a subdirectory.
Project structure looks as follows:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lambda-packager
You can use lambda-packager like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page