-
Notifications
You must be signed in to change notification settings - Fork 37
/
serverless.yml
61 lines (56 loc) · 1.8 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
55
56
57
58
59
60
61
useDotenv: true
service: ${env:SERVERLESS_SERVICE}
frameworkVersion: '3'
configValidationMode: error
provider:
name: aws
runtime: nodejs14.x
region: ap-southeast-1
memorySize: 256
plugins:
- serverless-plugin-include-dependencies
package:
individually: true
functions:
migrate-url-to-user:
handler: src/server/serverless/lambda-migrate-url-to-user/index.handler
memorySize: 128
description: Postgresql user-defined function for migrating a url to an existing user
package:
patterns:
- '!./**'
- 'src/server/serverless/lambda-migrate-url-to-user/**'
- 'package-lock.json'
- 'package.json'
migrate-user-links:
handler: src/server/serverless/lambda-migrate-user-links/index.handler
memorySize: 128
description: Postgresql user-defined function for migrating a user's links to another existing user
package:
patterns:
- '!./**'
- 'src/server/serverless/lambda-migrate-user-links/**'
- 'package-lock.json'
- 'package.json'
capture-ses-events:
handler: src/server/serverless/capture-ses-events/index.handler
memorySize: 128
description: SNS subscriber for SES events
package:
patterns:
- '!./**'
- 'src/server/serverless/capture-ses-events/**'
- 'package-lock.json'
- 'package.json'
bulk-qrcode-generation:
handler: src/server/serverless/bulk-qrcode-generation/index.handler
memorySize: 2048 # 2048 MB
ephemeralStorageSize: 512 # 512 MB
timeout: 120 # 120 seconds
description: Bulk generates QR codes in svg and png from shortUrl-longUrl mappings
package:
patterns:
- '!./**'
- 'src/server/serverless/bulk-qrcode-generation/**'
- 'package-lock.json'
- 'package.json'