forked from snyk-labs/serverless-gcf-goof
-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
65 lines (53 loc) · 1.21 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
64
65
service: serverless-goof
frameworkVersion: ">=1.1.0 <2.0.0"
provider:
name: google
project: snyk-presentations
region: us-central1
runtime: nodejs6
credentials: ~/.gcloud/keyfile.json
environment:
MY_SECRET_ENV_VAR: "Tada!"
plugins:
- serverless-google-cloudfunctions
functions:
create:
handler: todos-create
events:
- http: todos-create
list:
handler: todos-list
events:
- http: todos-list
get:
handler: todos-get
events:
- http: todos-get
update:
handler: todos-update
events:
- http: todos-update
delete:
handler: todos-delete
events:
- http: todos-delete
render:
handler: todos-render
events:
- http: todos-render
internalBackup:
handler: internal-backup
events:
- event:
eventType: providers/cloud.pubsub/eventTypes/topic.publish
resource: projects/snyk-presentations/topics/internal-backup
internalRestore:
handler: internal-restore
events:
- event:
eventType: providers/cloud.pubsub/eventTypes/topic.publish
resource: projects/snyk-presentations/topics/internal-backup
adminApi:
handler: admin
events:
- http: admin