forked from vadym-khodak/django-aws-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
71 lines (66 loc) · 1.32 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
67
68
69
70
71
service: django-aws-lambda
plugins:
- serverless-dotenv-plugin
- serverless-prune-plugin
- serverless-python-requirements
- serverless-wsgi
useDotenv: true
custom:
dotenv:
logging: false
pythonRequirements:
dockerizePip: non-linux
zip: true
fileName: requirements.txt
stage: ${env:STAGE}
wsgi:
app: django_aws_lambda.wsgi.application
packRequirements: false
prune:
automatic: true
number: 3
functions:
- app:
handler: wsgi_handler.handler
events:
- http: ANY /
- http: ANY /{proxy+}
timeout: 30
provider:
name: aws
role: arn:aws:iam::198784529794:role/exec_lambda
profile: admin
region: us-east-1
runtime: python3.8
versionFunctions: false
stage: ${env:STAGE}
timeout: 60
vpc:
securityGroupIds:
- sg-e2a9ddd5
- sg-01d23aa5252981a2b
subnetIds:
- subnet-5751da76
- subnet-36aa2369
- subnet-65ea6603
- subnet-3927f708
- subnet-31623e7c
- subnet-ff4f09f1
deploymentBucket:
name: ${env:DEPLOYMENT_BUCKET}
apiGateway:
shouldStartNameWithService: true
lambdaHashingVersion: 20201221
package:
individually:
true
exclude:
- .cache/**
- .env
- .git/**
- .github/**
- .pytest_cache/**
- .serverless/**
- node_modules/**
- static/**
- db.sqlite3