This is a starter template for writing es6 javascript lambda code targeting node 6.10
runtime engine.
- Clone this repo.
- Run
yarn install
. - Write es6 modules in
src
folder. - Write lambda handler logic inside
handler()
function insrc/index.js
. - Add any runtime dependencies into
bundledDependencies
array inpackage.json
. - Run
npm run build
to transpile es6 js into aws node js. Output folder isbin/
. - Run
npm run pack2zip
to performnpm pack
and convert*.tgz
to*.zip
. - upload the created zip file to aws lambda.
- Configure the handler name to be
package/bin/index.handler
.