Created
August 5, 2020 13:18
-
-
Save derek-fong/44eee3fdcc037b70017faab91f044890 to your computer and use it in GitHub Desktop.
How to Build a Serverless Apollo GraphQL Server with AWS Lambda, Webpack and TypeScript
This file contains hidden or 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: demo-apollo-server-lambda | |
| provider: | |
| name: aws | |
| runtime: nodejs12.x | |
| region: ap-southeast-2 | |
| functions: | |
| graphql: | |
| handler: src/apollo-server.graphqlHandler | |
| events: | |
| - http: | |
| path: graphql | |
| method: post | |
| cors: true | |
| - http: | |
| path: graphql | |
| method: get | |
| cors: true | |
| plugins: | |
| - serverless-webpack | |
| - serverless-offline | |
| custom: | |
| webpack: | |
| includeModules: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment