Skip to content

Instantly share code, notes, and snippets.

@AyoubEd-zz
Created November 27, 2018 00:10
Show Gist options
  • Save AyoubEd-zz/a915c863ed1585f0acbc7fa246f5e7b2 to your computer and use it in GitHub Desktop.
Save AyoubEd-zz/a915c863ed1585f0acbc7fa246f5e7b2 to your computer and use it in GitHub Desktop.
service:
name: aws-typescript-graphql-tuto
# Add the serverless-webpack plugin
plugins:
- serverless-webpack
- serverless-offline
provider:
name: aws
runtime: nodejs8.10
stage: ${opt:stage, 'dev'}
environment:
redisHost: '${file(./config/${self:provider.stage}.json):redis.host}'
redisPort: '${file(./config/${self:provider.stage}.json):redis.port}'
functions:
graphql:
handler: handler.graphqlHandler
events:
- http:
method: post
path: graphql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment