Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Last active January 26, 2020 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandalsoft/82c3ce8c81e901fc3f10858afd68c225 to your computer and use it in GitHub Desktop.
Save sandalsoft/82c3ce8c81e901fc3f10858afd68c225 to your computer and use it in GitHub Desktop.
service:
name: __FUNCTION_NAME__
plugins:
- serverless-plugin-typescript
- serverless-plugin-offline
provider:
name: aws
stage: ${opt:stage, 'dev'}
runtime: nodejs12.x
apiKeys:
- ${opt:stage}_APIKey_${self:service.name}
functions:
__FUNCTION_NAME__:
handler: src/handler.${self:service.name}
events:
- http:
method: get
path: ${self:service.name}
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment