-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
35 lines (30 loc) · 813 Bytes
/
serverless.yml
File metadata and controls
35 lines (30 loc) · 813 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
service: score
plugins:
- serverless-dotenv-plugin
frameworkVersion: '2'
provider:
name: aws
runtime: nodejs12.x
profile: bp-sls
lambdaHashingVersion: 20201221
environment:
NODE_URL: ${env:NODE_URL}
SERVERLESS: ${env:SERVERLESS}
iam:
role:
statements: # permissions for all of your functions can be set here
- Effect: Allow
Action: # Gives permission to DynamoDB tables in a specific region
- s3:*
Resource: '*'
functions:
calc:
handler: handler.calcScore
timeout: 900 # optional, in seconds, default is 6 max is 15minutes
events:
- schedule: rate(30 minutes)
bip1:
handler: handler.bip1
timeout: 900 # optional, in seconds, default is 6 max is 15minutes
events:
- schedule: rate(30 minutes)