-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yaml
46 lines (41 loc) · 900 Bytes
/
serverless.yaml
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
service: odds-harvester
provider:
name: aws
architecture: arm64
region: eu-west-3
versionFunctions: false
ecr:
images:
playwright_python_arm64:
path: ./
file: Dockerfile
iam:
role:
statements:
- Effect: Allow
Action:
- s3:PutObject
- s3:GetObject
- s3:DeleteObject
Resource: "arn:aws:s3:::odds-portal-scrapped-odds-cad8822c179f12cg/*"
functions:
scanAndStoreOddsPortalDataV2:
image:
name: playwright_python_arm64
timeout: 360 # seconds
memorySize: 2048 # mb
description: Retrieve and store sports betting odds
events:
- eventBridge:
schedule: rate(2 hours)
package:
individually: true
patterns:
- "!node_modules/**"
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
slim: true
strip: false
noDeploy: ['boto3']