-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
44 lines (38 loc) · 748 Bytes
/
serverless.yml
File metadata and controls
44 lines (38 loc) · 748 Bytes
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
service: sentiment-analyzer
provider:
name: aws
runtime: python3.12
region: ap-south-1
functions:
app:
handler: wsgi_handler.handler
events:
- http:
path: /
method: GET
- http:
path: /analyze/{input_txt}
method: GET
request:
parameters:
paths:
input_txt: true
plugins:
- serverless-wsgi
- serverless-python-requirements
- serverless-prune-plugin
custom:
wsgi:
app: app.app
pythonRequirements:
dockerizePip: false
prune:
automatic: true
number: 2
package:
patterns:
- '!venv/**'
- '!__pycache__/**'
- '!node_modules/**'
- '!.serverless/**'
- '!package-lock.json'