-
Notifications
You must be signed in to change notification settings - Fork 23
/
serverless.yml
40 lines (34 loc) · 996 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
32
33
34
35
36
37
38
39
40
service: perp-arbitrageur
plugins:
- serverless-plugin-log-retention
- serverless-webpack
useDotenv: true
provider:
name: aws
stackName: ${self:service}
runtime: nodejs16.x
memorySize: 512
versionFunctions: false
stage: ${opt:stage, 'production'}
region: ${env:AWS_REGION, 'us-east-1'}
environment:
L2_WEB3_ENDPOINTS: ${env:L2_WEB3_ENDPOINTS}
PRIVATE_KEY: ${env:PRIVATE_KEY}
FTX_API_KEY: ${env:FTX_API_KEY}
FTX_API_SECRET: ${env:FTX_API_SECRET}
FTX_SUBACCOUNT: ${env:FTX_SUBACCOUNT}
custom:
logRetentionInDays: 30
webpack:
webpackConfig: "webpack.config.js"
includeModules: false
packager: "npm"
functions:
main:
timeout: 290 # timeout before next lambda execution to prevent concurrency
handler: build/index.main
maximumRetryAttempts: 0
events:
- schedule:
rate: rate(5 minutes)
enabled: true