-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
52 lines (47 loc) · 967 Bytes
/
serverless.yml
File metadata and controls
52 lines (47 loc) · 967 Bytes
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
service: trace
provider:
name: aws
runtime: python3.6
stage: dev
region: us-east-1
memorySize: 128
timeout: 5
apiName: NU-TRACE
role: arn:aws:iam::317318443930:role/trace-dev-us-east-1-lambdaRole
endpointType: regional
vpc:
securityGroupIds:
- sg-0c5846cb50539bb03
subnetIds:
- subnet-28eb7306
- subnet-07072a4d
environment:
DB_USERNAME: ${opt:user}
DB_PASSWORD: ${opt:pass}
APP_ENVIRONMENT: prod
package:
exclude:
- requirements.txt
- serverless.yml
- README.md
- package.json
- package-lock.json
- .circleci/**
- node_modules/**
plugins:
- serverless-wsgi
- serverless-python-requirements
custom:
wsgi:
app: ./api/manage.app
packRequirements: false
functions:
app:
handler: wsgi_handler.handler
events:
- http: ANY /
cors: true
authorizer: aws_iam
- http: 'ANY {proxy+}'
cors: true
authorizer: aws_iam