Amabel / aws-lambda-seed

Coding AWS lambda with ESNext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Lambda Seed

Coding AWS lambda with ESNext

Usage

Install dependencies

$ npm install

Build

$ npm run build

Publish

NOTE: You need to manually create a function on AWS Lambda with the same name for the first time, then using this command to update it.

$ npm run publish

Troubleshooting

Q: Runtime.ImportModuleError

"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'index'"

A: Change the handler from index.handler to dist/index.handler

License

MIT

About

Coding AWS lambda with ESNext

License:MIT License


Languages

Language:JavaScript 58.2%Language:Shell 41.8%