-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
57 lines (50 loc) · 930 Bytes
/
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
48
49
50
51
52
53
54
55
56
57
service: aws-serverless-api-v2
frameworkVersion: "3"
# Specify donenv
useDotenv: true
provider:
name: aws
runtime: nodejs18.x
functions:
create:
handler: handler.create
events:
- http:
path: /
method: post
readAll:
handler: handler.read
events:
- http:
path: /
method: get
readOne:
handler: handler.read
events:
- http:
path: /{id}
method: get
update:
handler: handler.update
events:
- http:
path: /{id}
method: put
delete:
handler: handler.deleteItem
events:
- http:
path: /{id}
method: delete
plugins:
- serverless-plugin-typescript
- serverless-offline
- serverless-dotenv-plugin
- "@fauna-labs/serverless-fauna"
fauna:
version: 10
client:
secret: ${env:FAUNA_SECRET}
collections:
Inventory:
name: Inventory