-
Notifications
You must be signed in to change notification settings - Fork 28
/
serverless.yml
49 lines (44 loc) · 936 Bytes
/
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
service: boavizta-api
package:
individually: true
provider:
name: aws
runtime: python3.8
region: eu-west-1
stage: ${opt:stage, "dev"}
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: true
layer:
name: boavizta-api-layer
description: Boavizta API
compatibleRuntimes:
- python3.8
functions:
app:
package:
include:
- "boaviztapi/**"
exclude:
- "requirements.txt"
- "package.json"
- "package-lock.json"
- ".serverless/**"
- ".virtualenv/**"
- "node_modules/**"
- "docs/**"
- "tests/**"
handler: boaviztapi.main.handler
environment:
STAGE: ${self:provider.stage}
layers:
- { Ref: PythonRequirementsLambdaLayer }
events:
- http:
method: get
path: /
- http:
method: any
path: /{proxy+}