mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
27 lines
524 B
YAML
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
|