Package your AWS Lambda efficiently, ready to be deployed with apex/up
Install and save to devDependencies:
npm install --save-dev lambdapackRun for the first time in your node.js project root folder:
npx lambdapackThis will setup everything that is needed:
- Add scripts to
package.json - Create
webpack.config.babel.jsfile - Create/Update
.babelrcconfig file - Create/Update
up.jsonfile
Now you can deploy using apex/up:
upand
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