-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
55 lines (51 loc) · 1.45 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
service: notifications
provider:
name: google
stage: prod
region: us-central1
project: tribal-artifact-263821
credentials: /Users/jorge.haddad/.gcloud/serverless-framework-admin-263821.json
plugins:
- serverless-google-cloudfunctions
package:
exclude:
- node_modules/**
- venv/**
- package.json
- package-lock.json
- .serverless/**
- .idea/**
- notifications_vars.json
functions:
sms_notifications:
memorySize: 128
timeout: 120s
runtime: python37
handler: notify_sms
serviceAccount: notify-function-agent@tribal-artifact-263821.iam.gserviceaccount.com
labels:
service: notifications
events:
- event:
eventType: providers/cloud.pubsub/eventTypes/topic.publish
resource: projects/tribal-artifact-263821/topics/send_sms_notification
environment:
LOG_LEVEL: DEBUG
VARS_BUCKET: web-parser-vars
VARS_BLOB: notifications_vars.json
email_notifications:
memorySize: 128
timeout: 120s
runtime: python37
handler: notify_email
serviceAccount: notify-function-agent@tribal-artifact-263821.iam.gserviceaccount.com
labels:
service: notifications
events:
- event:
eventType: providers/cloud.pubsub/eventTypes/topic.publish
resource: projects/tribal-artifact-263821/topics/send_email_notification
environment:
LOG_LEVEL: DEBUG
VARS_BUCKET: web-parser-vars
VARS_BLOB: notifications_vars.json