-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
42 lines (36 loc) · 952 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
---
service: scryfall-telegram
configValidationMode: warn
custom:
currentStage: ${opt:stage, self:provider.stage}
environments:
staging: STAG
production: PROD
pythonRequirements:
dockerizePip: non-linux
slim: true
provider:
name: aws
runtime: python3.11
region: eu-west-1
memorySize: 128
architecture: arm64
timeout: 25
logRetentionInDays: 60
stage: staging
environment:
TELEGRAM_BOT_TOKEN: ${env:TELEGRAM_BOT_TOKEN_${self:custom.environments.${self:custom.currentStage}}}
STAGE: ${self:custom.currentStage}
plugins:
- serverless-python-requirements
package:
patterns:
- "!**"
- "scryfall_telegram/**"
functions:
handle_telegram_webhook:
handler: scryfall_telegram.handler.handle_telegram_webhook
events:
- httpApi:
path: /${env:WEBHOOK_SECRET}
method: POST