-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
38 lines (36 loc) · 829 Bytes
/
serverless.yml
File metadata and controls
38 lines (36 loc) · 829 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
service: sc-auditor-backend
package:
individually: true
provider:
name: aws
runtime: python3.11
region: eu-central-1
httpApi:
cors: true
timeout: 30
stage: production
memorySize: 512
environment:
Auth: <<openaicode>> # Replace this with your actual API key
plugins:
- serverless-offline
functions:
app:
package:
patterns:
- "!aud11_venv/**"
- "!node_modules/**"
- "!.env"
- "!__pycache__/**"
- "!venv_activation/**"
- "!python/**"
- "!python-layer.zip"
- "!pythonlayer.zip"
handler: handler.handler
layers:
- arn:aws:lambda:eu-central-1:954********:layer:pyth***********er:* # Replace with your actual layer ARN
events:
- http:
method: any
path: /{proxy+}
cors: true