-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
43 lines (37 loc) · 901 Bytes
/
serverless.yml
File metadata and controls
43 lines (37 loc) · 901 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
service: serverless-notify
plugins:
- serverless-python-requirements
custom:
wsgi:
app: app.app
packRequirements: false
pythonRequirements:
dockerizePip: non-linux
package:
exclude:
- node_modules/**
- venv/**
- .direnv/**
- bot.session
provider:
name: aws
runtime: python3.7
stage: ${opt:stage, 'dev'}
region: ${opt:region, 'us-west-1'}
memorySize: 512
functions:
app:
handler: app.handler
environment:
SENDGRID_API_KEY: ${env:SENDGRID_API_KEY}
SENDGRID_FROM_ADDRESS: ${env:SENDGRID_FROM_ADDRESS}
IFTTT_EVENT: ${env:IFTTT_EVENT}
IFTTT_KEY: ${env:IFTTT_KEY}
PUSHBULLET_ACCESS_TOKEN: ${env:PUSHBULLET_ACCESS_TOKEN}
SERVER_CHAN_SCKEY: ${env:SERVER_CHAN_SCKEY}
TELEGRAM_BOT_TOKEN: ${env:TELEGRAM_BOT_TOKEN}
events:
- http: ANY /
- http:
path: /{proxy+}
method: ANY