-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
executable file
·48 lines (44 loc) · 818 Bytes
/
serverless.yml
File metadata and controls
executable file
·48 lines (44 loc) · 818 Bytes
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
service: sls-golang-event
package:
artifact: package.zip
provider:
name: aws
runtime: python2.7
stage: ${env:ENV}
region: ${env:AWS_REGION}
functions:
create:
handler: handler.Create
events:
- http:
path: todos
method: post
cors: true
list:
handler: handler.List
events:
- http:
path: todos
method: get
cors: true
get:
handler: handler.Get
events:
- http:
path: todos/{id}
method: get
cors: true
update:
handler: handler.Update
events:
- http:
path: todos/{id}
method: put
cors: true
delete:
handler: handler.Delete
events:
- http:
path: todos/{id}
method: delete
cors: true