Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active October 20, 2021 10:29
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 velotiotech/e34ebddcbe980032c13a9967410f4f04 to your computer and use it in GitHub Desktop.
Save velotiotech/e34ebddcbe980032c13a9967410f4f04 to your computer and use it in GitHub Desktop.
service: websocket-app
frameworkVersion: '2'
custom:
dynamodb:
stages:
- dev
start:
port: 8000
inMemory: true
heapInitial: 200m
heapMax: 1g
migrate: true
convertEmptyValues: true
webpack:
keepOutputDirectory: true
packager: 'npm'
includeModules:
forceExclude:
- aws-sdk
provider:
name: aws
runtime: nodejs12.x
lambdaHashingVersion: 20201221
plugins:
- serverless-dynamodb-local
- serverless-plugin-existing-s3
- serverless-dotenv-plugin
- serverless-webpack
- serverless-offline
resources:
- Resources: ${file(./config/dynamoDB.yaml)}
- Resources: ${file(./config/lambdaRoles.yaml)}
functions:
hello:
handler: handler.hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment