Package your AWS Lambda efficiently, ready to be deployed with apex/up
Install and save to devDependencies:
npm install --save-dev lambdapack
Run for the first time in your node.js project root folder:
npx lambdapack
This will setup everything that is needed:
- Add scripts to
package.json
- Create
webpack.config.babel.js
file - Create/Update
.babelrc
config file - Create/Update
up.json
file
Now you can deploy using apex/up:
up
and
up deploy production
- Bundle Node.js 8 (or latest) inside package
- Allow to customize the whitelist and blacklist
- Support other deployment methods other than
apex/up