-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathserverless.yml
50 lines (44 loc) · 1000 Bytes
/
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
useDotenv: true
service: poprox-default-recommender
frameworkVersion: "3"
provider:
name: aws
runtime: python3.11
versionFunctions: false
region: ${opt:region, "us-east-1"}
stage: ${opt:stage, "local"}
memorySize: 2048 # 2gb
timeout: 25
architecture: x86_64
iam:
role:
# Add statements to the IAM role to give permissions to Lambda functions
statements:
- Effect: Allow
Action:
- "logs:*"
Resource: "*"
ecr:
# In this section you can define images that will be built locally and uploaded to ECR
images:
poprox-recommender:
path: "./"
platform: linux/amd64
package:
patterns:
- "!venv/**"
- "!models/**"
- "!node_modules/**"
- "!tests/**"
- "**.py"
- "**.html"
functions:
generateRecommendations:
image:
name: poprox-recommender
memorySize: 4096
ephemeralStorageSize: 2048
events:
- httpApi:
path: /
method: post