-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
50 lines (50 loc) · 1.02 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
service: pytuga-ms
provider:
name: aws
stackName: pytuga-ms
runtime: python3.6
region: us-east-1
memorySize: 128
timeout: 30
functions:
app:
handler: app.handler
environment:
DOPPLER_TOKEN: ${env:DOPPLER_TOKEN}
events:
- alb:
listenerArn: arn:aws:elasticloadbalancing:us-east-1:583704988389:listener/app/public-load-balancer/c8abde834611a9e2/491953bac048b0cf
priority: 1
conditions:
path: /pytuga
method:
- POST
- OPTIONS
custom:
pythonRequirements:
dockerizePip: non-linux
useDownloadCache: false
useStaticCache: false
invalidateCaches: true
package:
exclude:
- .github
- .vscode
- node_modules/**
- .editorconfig
- config.sh
- README.md
- package.json
- package-lock.json
- yarn.lock
- start.py
- Dockerfile
- docker-compose.yml
- __pycache__
- .gitignore
- .app.log
- .flake8
- src/tests/**
- test.py
plugins:
- serverless-python-requirements