-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
54 lines (49 loc) · 1.1 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: ia-project-backend-node
provider:
name: aws
region: us-east-1
runtime: nodejs16.x
apiGateway:
disableDefaultEndpoint: true
minimumCompressionSize: 1024
apiKeys:
- value: g6zLfyQ3X6W2XuZzk4423pywV2uchpbKbHTMWNYEQsytAfnLPIXR6cwNxeGhQeyE
usagePlan:
quota:
limit: 5000
offset: 2
period: MONTH
throttle:
burstLimit: 200
rateLimit: 100
plugins:
- serverless-webpack
- serverless-offline
package:
individually: true
custom:
webpack:
packager: npm
excludeFiles: "**/*.test.ts"
serverless-offline:
httpPort: 8000
reloadHandler: true
functions:
recognitionRuntime:
handler: src/handler.handler
events:
- http:
method: POST
path: /recognize
cors:
origins: "*"
headers:
- Content-Type
- X-Amz-Date
- Authorization
- X-Api-Key
- X-Amz-Security-Token
- X-Amz-User-Agent
- X-Amzn-Trace-Id
allowCredentials: false
private: true