nordcloud / lambda-wrapper

Wrapper for running lambda modules locally during development
MIT License
30 stars 17 forks source link

Introduce input validation #13

Closed medikoo closed 6 years ago

medikoo commented 7 years ago

Currently if handler is not found on input object, then without further validation direct AWS call are made, which in turn may produce ambigous errors (from AWS side: either about credentials missing or missing FunctionName in params) when expected outcome was that lambda is run locally.

This patch introduces some sanity validation at initialization level.

mpuittinen commented 6 years ago

@medikoo Thanks for the PR. Included in lambda-wrapper 0.3.0