-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
serverless.yml
54 lines (48 loc) · 1.08 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
service: whale-alerts-bot
custom:
# Our stage is based on what is passed in when running serverless
# commands. Or falls back to what we have set in the provider section.
stage: ${opt:stage, 'offline'}
region: ${opt:region, 'us-east-1'}
bundle:
linting: false
excludeFiles: "**/*.test.ts"
serverless-offline:
httpPort: 4000
noPrependStageInUrl: true
provider:
name: aws
runtime: nodejs16.x
memorySize: 512
timeout: 15
logRetentionInDays: 90
logs:
httpApi: true
httpApi:
cors: true
functions:
app:
handler: src/handler.handler
events:
- httpApi:
path: '/{proxy+}'
method: '*'
environment:
QUEUE_URL: ${construct:purchases.queueUrl}
constructs:
purchases:
type: queue
fifo: true
worker:
handler: src/worker.handler
extensions:
queue:
Properties:
MaximumMessageSize: 262144
package:
individually: true
plugins:
- serverless-dotenv-plugin
- serverless-bundle
- serverless-offline
- serverless-lift