-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
Copy pathserverless.yml
63 lines (53 loc) · 1.02 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
service: serverless-rest-api-with-faunadb
frameworkVersion: ">=1.1.0 <2.0.0"
package:
exclude:
- node_modules/**
- venv/**
plugins:
- serverless-python-requirements
provider:
name: aws
runtime: python2.7
region: us-east-1
stage: dev
environment:
FAUNADB_SECRET: YOUR-SECRET-HERE
functions:
create:
handler: todos/create.create
events:
- http:
path: todos
method: post
cors: true
list:
handler: todos/list.list
events:
- http:
path: todos
method: get
cors: true
get:
handler: todos/get.get
events:
- http:
path: todos/{id}
method: get
cors: true
update:
handler: todos/update.update
events:
- http:
path: todos/{id}
method: put
cors: true
delete:
handler: todos/delete.delete
events:
- http:
path: todos/{id}
method: delete
cors: true
schema:
handler: todos/schema.schema