-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
executable file
·47 lines (42 loc) · 1.17 KB
/
serverless.yml
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
46
47
service: sir-learn-a-lot
plugins:
- serverless-offline
- serverless-plugin-typescript
- serverless-offline-dynamodb-streams
- serverless-localstack
custom:
serverless-offline:
httpPort: 9000
lambdaPort: 9001
useChildProcesses: true
serverless-offline-dynamodb-streams:
apiVersion: '2013-12-02'
endpoint: http://0.0.0.0:4566
region: us-east-1
accessKeyId: root
secretAccessKey: root
skipCacheInvalidation: false
readInterval: 500
provider:
name: aws
runtime: nodejs12.x
memorySize: 256
timeout: 30
region: us-east-1
functions:
graphqlPostHandler:
handler: src/lambdas/graphql.handler
events:
- http:
path: /graphql
method: POST
stream:
handler: src/lambdas/stream.handler
events:
- stream:
enabled: true
type: dynamodb
arn: arn:aws:dynamodb:us-east-1:000000000000:table/sir-learn-a-lot/stream/2021-10-22T21:02:42.946
# todo: this comes from `awslocal dynamodbstreams list-streams`, so need to find out how to do this dynamically, e.g.
# tableName: images
# https://www.npmjs.com/package/serverless-offline-dynamodb-streams