Skip to content

Instantly share code, notes, and snippets.

@nishabe
Created November 19, 2020 05:14
Show Gist options
  • Save nishabe/d41bb726b955069814a9879a2f90356a to your computer and use it in GitHub Desktop.
Save nishabe/d41bb726b955069814a9879a2f90356a to your computer and use it in GitHub Desktop.
serverless.yaml
service:
name: nest-serverless-lambda-demo
plugins:
- 'serverless-plugin-typescript'
- serverless-plugin-optimize
- serverless-offline
provider:
name: aws
runtime: nodejs12.x
functions:
main: # The name of the lambda function
# The module 'handler' is exported in the file 'src/lambda'
handler: src/lambda.handler
events:
- http:
method: any
path: /{any+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment