franz
franz generates you serverless.yml
and webpack config.
Still in early stage!!
define a lambda.config.js
file and call franz
.
Now you could call webpack
with your webpack config. And finally serverless deploy
moduleexports = service: 'service_name' //used by serverless region: 'eu-central-1' //used by serverless stage: 'dev' //used by serverless variables: //global environment variables for your lambda functions FOO: 'bar' BAR: processenvBAR functions: './path/to/your/function' //with or without .js -> uses require() internally
your function file:
moduleexports = name: 'my-function' method: 'GET' path: '/foo' { return Promise }
wbepack.config.js
const config = //contains all entry points... moduleexports = Object