-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yaml
45 lines (40 loc) · 954 Bytes
/
serverless.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
service: appsync-lambda
frameworkVersion: "3"
configValidationMode: "warn"
provider:
name: aws
runtime: nodejs20.x
architecture: arm64
deploymentMethod: direct
stage: ${opt:stage, self:custom.defaultStage}
region: us-west-1
plugins:
- serverless-appsync-plugin
custom:
defaultStage: dev
appSync:
name: graphql-lambda-${self:provider.stage}
schema: "schema.graphql"
xrayEnabled: true
logging:
level: ERROR
retentionInDays: 14
authentication:
type: "API_KEY"
apiKeys:
- name: apiKey
description: dev API key
expiresAfter: 3M
dataSources:
searchPosts:
type: AWS_LAMBDA
name: graphql-handler
config:
functionName: graphql-handler
resolvers: ${file('.resources/resolvers.yaml')}
functions:
graphql-handler:
name: graphql-handler-${self:provider.stage}
description: Lambda which handles GraphQL requests
timeout: 10
handler: build/handler.handler