-
Notifications
You must be signed in to change notification settings - Fork 5
/
serverless.yml
58 lines (52 loc) · 1.16 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
service: findme
provider:
name: openwhisk
runtime: nodejs:10
package:
exclude:
- 'weights/**'
functions:
search_status:
handler: search_status.main
name: "findme/search_status"
events:
- http:
method: GET
path: /api/search/{id}
resp: http
annotations:
final: true
schedule_search:
handler: schedule_search.main
name: "findme/schedule_search"
events:
- http: POST /api/search
annotations:
final: true
twitter_search:
handler: twitter_search.main
name: "findme/twitter_search"
events:
- trigger: search_request
annotations:
final: true
compare_images:
handler: compare_images.main
name: "findme/compare_images"
image: jamesthomas/action-nodejs-v10:tfjs-faceapi
memory: 512
events:
- trigger: tweet_image
annotations:
final: true
custom:
credentials: ${file(creds.json)}
resources:
packages:
findme:
parameters:
redis: ${self:custom.credentials.redis}
auth0: ${self:custom.credentials.auth0}
twitter_client: ${self:custom.credentials.twitter}
plugins:
- serverless-openwhisk