Created
November 27, 2018 00:10
-
-
Save AyoubEd-zz/a915c863ed1585f0acbc7fa246f5e7b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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