-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
40 lines (32 loc) · 897 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
# Serverless Configuration File
service: leetcode-daily-question-telegram-bot
frameworkVersion: "3"
provider:
name: aws
runtime: python3.11
environment:
TELEGRAM_TOKEN: ${env:TELEGRAM_TOKEN}
TELEGRAM_CHAT_ID: ${env:TELEGRAM_CHAT_ID}
functions:
cron:
handler: app.handler.send_message
events:
# Invoke Lambda function at 00:01 (UTC) every day
# Syntax reference: https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents-expressions.html
- schedule: cron(1 0 * * ? *)
package:
patterns:
- '!venv/**'
- '!node_modules/**'
- '!**/__pycache__/**'
- '!.github/**'
- '!.editorconfig'
- '!.nvmrc'
- '!*.md'
- '!Makefile'
# Handling python packages: https://www.serverless.com/blog/serverless-python-packaging
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: false