Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serverless yml file according to sls v3 and update packages #766

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion aws-node-typescript-apollo-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ This example demonstrates how to setup a lambda graphql API with apollo

## Setup
- Setup your env file for AWS deployment with:
- - APOLLO_LAMBDA_KEY
- - NODE_ENV

- sls deploy
Expand Down
28 changes: 17 additions & 11 deletions aws-node-typescript-apollo-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,29 @@
"lint": "tslint -p tsconfig.json -c tslint.json"
},
"dependencies": {
"apollo-server-lambda": "^2.16.1",
"graphql": "^15.3.0",
"apollo-server-lambda": "^3.12.0",
"graphql": "^16.8.0",
"source-map-support": "^0.5.10"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.17",
"@types/node": "^10.14.22",
"eslint": "^6.6.0",
"serverless": "^1.79.0",
"serverless-dotenv-plugin": "^3.0.0",
"serverless-offline": "^6.5.0",
"serverless-plugin-typescript": "^1.1.9",
"ts-loader": "^5.3.3",
"tslint": "^5.20.0",
"@types/node": "^20.5.7",
"eslint": "^8.48.0",
"serverless": "^3.34.0",
"serverless-dotenv-plugin": "^6.0.0",
"serverless-offline": "^12.0.4",
"serverless-plugin-typescript": "^2.1.5",
"ts-loader": "^9.4.4",
"tslint": "^5",
"tslint-config-airbnb": "^5.11.2",
"typescript": "^3.2.4"
"typescript": "^5.2.2"
},
"author": "Miguel Frazao (https://github.com/jmpfrazao/aws-node-typescript-apollo-lambda)",
"contributors": [
{
"name": "Maike Negreiros",
"url": "https://github.com/maikenegreiros"
}
],
"license": "MIT"
}
11 changes: 6 additions & 5 deletions aws-node-typescript-apollo-lambda/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
service:
name: aws-node-typescript-apollo-lambda
service: aws-node-typescript-apollo-lambda

frameworkVersion: "3"

Expand All @@ -8,13 +7,15 @@ plugins:
- serverless-offline
- serverless-plugin-typescript

useDotenv: true

provider:
name: aws
runtime: nodejs18.x
timeout: 15
apiKeys:
- name: lambdaApolloKey
value: ${env:APOLLO_LAMBDA_KEY}
apiGateway:
apiKeys:
- lambdaApolloKey

functions:
graphql:
Expand Down