-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
40 lines (36 loc) · 915 Bytes
/
serverless.yml
File metadata and controls
40 lines (36 loc) · 915 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
service: leap-peeper
custom:
serverless-offline:
port: 3001
safeBlockTime: 180
safePeriodTime: 2100
provider:
name: aws
region: eu-west-1
runtime: nodejs8.10
timeout: 30
iamRoleStatements:
- Effect: Allow
Action:
- sdb:GetAttributes
- sdb:PutAttributes
Resource: "arn:aws:sdb:*:*:domain/leap_peeper"
functions:
peeper:
handler: src/index.handler
environment:
SLACK_HOOK: ${env:SLACK_HOOK}
SLACK_CHANNEL: ${env:SLACK_CHANNEL}
NODE_URL: ${env:NODE_URL}
ENV: ${opt:stage}
SAFE_BLOCK_TIME: ${env:SAFE_BLOCK_TIME, self:custom.safeBlockTime}
SAFE_PERIOD_TIME: ${env:SAFE_PERIOD_TIME, self:custom.safePeriodTime}
VAL_BALANCE_THRESHOLD: ${env:VAL_BALANCE_THRESHOLD}
events:
- schedule: rate(1 minute)
- http:
path: /
method: get
cors: true
plugins:
- serverless-offline