-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
66 lines (61 loc) · 1.35 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
55
56
57
58
59
60
61
62
63
64
65
66
service: thetensorclan-aws
plugins:
- serverless-python-requirements
- serverless-wsgi
custom:
wsgi:
app: app.app
packRequirements: false
pythonRequirements:
# dockerizePip: true
zip: true
slim: true
strip: false
noDeploy:
- docutils
- jmespath
- pip
- python-dateutil
- setuptools
- six
- tensorboard
useStaticCache: true
useDownloadCache: true
package:
individually: false
exclude:
- package.json
- package-log.json
- node_modules/**
- cache/**
- test/**
- __pycache__/**
- .pytest_cache/**
- .cache/**
- .requirement.zip
- .serverless/**
- face/*.dat
- face/*.bz2
- models/*.pt
provider:
name: aws
runtime: python3.7
stage: dev
region: ap-south-1
timeout: 60
environment:
S3_BUCKET: thetensorclan-models
PRODUCTION: TRUE
iamRoleStatements:
- Effect: "Allow"
Action:
- s3:getObject
Resource: arn:aws:s3:::thetensorclan-models/*
functions:
app:
handler: wsgi_handler.handler
memorySize: 3008
timeout: 60
events:
- http: ANY /
- http: "ANY {proxy+}"