forked from fxfactorial/perp-arbitrageur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
42 lines (36 loc) · 917 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
41
42
service: perp-arbitrageur
plugins:
- serverless-offline
- serverless-dotenv-plugin
- serverless-webpack
provider:
name: aws
runtime: nodejs12.x
memorySize: 256
timeout: 60
versionFunctions: false
apiGateway:
minimumCompressionSize: 1024
stage: production
region: ap-northeast-1
environment:
WEB3_ENDPOINT: ${env:WEB3_ENDPOINT}
ARBITRAGEUR_PK: ${env:ARBITRAGEUR_PK}
FTX_API_KEY: ${env:FTX_API_KEY}
FTX_API_SECRET: ${env:FTX_API_SECRET}
package:
exclude:
- node_modules/@perp/contract/node_modules/**
custom:
serverless-offline:
port: 3002
noTimeout: true
webpack:
webpackConfig: 'webpack.config.js'
includeModules: false
packager: 'npm'
functions:
arbitrageur:
handler: build/src/schedule.handler
events:
- schedule: rate(1 minute)