-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
44 lines (38 loc) · 987 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
service: water-meter-parser
provider:
name: google
stage: dev
runtime: nodejs10
region: europe-west1
project: water-vision
# The GCF credentials can be a little tricky to set up. Luckily we've documented this for you here:
# https://serverless.com/framework/docs/providers/google/guide/credentials/
#
# the path to the credentials file needs to be absolute
credentials: /Users/andries/.gcloud/water-vision-owner.json
environments:
WEBHOOK_URL: ${env:WEBHOOK_URL}
STORAGE_BUCKET: water-meter
plugins:
- serverless-google-cloudfunctions
package:
exclude:
- data/**
- node_modules/**
- src/**
- .idea/
- .gitignore
- .git/**
- .env
- .env.example
include:
- package.json
- package-lock.json
- dist/**
functions:
parsePhoto:
handler: mainHandler
events:
- event:
eventType: google.storage.object.finalize
resource: projects/${self:provider.project}/buckets/water-meter