-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yaml
59 lines (53 loc) · 1.11 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
org: cmungall
app: ontology-term-usage
service: ontology-term-usage
package:
individually: true
provider:
name: aws
runtime: python3.8
region: us-east-1
stage: ${opt:stage, "dev"}
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: true
layer:
name: ontology-term-usage-layer
description: Ontology term usage layer
compatibleRuntimes:
- python3.8
functions:
app:
package:
include:
- "main.py"
exclude:
- "requirements.txt"
- "package.json"
- "package-lock.json"
- ".serverless/**"
- ".virtualenv/**"
- "node_modules/**"
handler: main.handler
environment:
STAGE: ${self:provider.stage}
layers:
- { Ref: PythonRequirementsLambdaLayer }
events:
- http:
method: any
path: /{proxy+}
- http:
method: get
path: forward
- http:
method: put
path: forward
- http:
method: post
path: forward
- http:
method: head
path: forward