-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
57 lines (52 loc) · 1.12 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
org: ficeadvisorbot
app: ficeadvisor
service: ficeadvisor-bot
plugins:
- serverless-python-requirements
provider:
name: aws
runtime: python3.11
stage: ${opt:stage, "dev"}
environment:
TOKEN: ${param:TOKEN}
CHAT_ID: ${param:CHAT_ID}
TELEGRAM_SECRET: ${param:TELEGRAM_SECRET}
BASE_URL: ${param:BASE_URL}
FRONT_BASE_URL: ${param:FRONT_BASE_URL}
API_URL: ${param:API_URL}
API_ACCESS_TOKEN: ${param:TOKEN}
package:
exclude:
- Makefile
- poetry.lock
- README.md
- tests/**
- docs/**
- node_modules/**
- .venv/**
- .serverless/**
- package.json
- package-lock.json
- .pytest_cache
- .hypothesis
custom:
pythonRequirements:
fileName: requirements.lock
dockerizePip: true
layer:
name: serverless-fastapi-deps
description: Dependencies of serverless-fastapi
compatibleRuntimes:
- python3.11
functions:
api:
handler: app.main.handler
layers:
- { Ref: PythonRequirementsLambdaLayer }
events:
- http:
method: ANY
path: /
- http:
method: any
path: /{proxy+}