2017-08-08 07:09:21 -03:00

27 lines
524 B
YAML

service: babel-dynamically-entries-example
# Add the serverless-webpack plugin
plugins:
- serverless-webpack
provider:
name: aws
runtime: nodejs6.10
functions:
# Example without LAMBDA-PROXY integration
# Invoking locally:
# sls webpack invoke -f first
first:
handler: first.hello
# Example with LAMBDA-PROXY integration
# Invoking locally:
# sls webpack invoke -f second
second:
handler: second.hello
events:
- http:
method: get
path: second
integration: lambda