-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
31 lines (28 loc) · 907 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
service: schedule-notificater
provider:
name: aws
runtime: python3.6
region: ${opt:region, self:custom.defaultRegion}
plugins:
- serverless-python-requirements
custom:
defaultRegion: ap-northeast-1
pythonRequirements:
dockerizePip: true
otherfile:
environment: ${file(./config/credentials.yml)}
functions:
slack_notificater:
handler: slack_notificater.lambda_handler
events:
- schedule: cron(0 8,10,12,14,16 * * ? *)
environment:
WEBHOOK_URL: ${self:custom.otherfile.environment.WEBHOOK_URL}
IKSM_SESSION: ${self:custom.otherfile.environment.IKSM_SESSION}
slack_notificater_gachi:
handler: slack_notificater_gachi.lambda_handler
events:
- schedule: cron(0 8,10,12,14,16 * * ? *)
environment:
WEBHOOK_URL: ${self:custom.otherfile.environment.WEBHOOK_URL}
IKSM_SESSION: ${self:custom.otherfile.environment.IKSM_SESSION}