-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
32 lines (27 loc) · 1.32 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
plugins:
- serverless-esbuild
custom:
secrets: ${file(./config/${opt:stage, 'dev'}.json)}
service: ${self:custom.secrets.service.name}
frameworkVersion: "3"
provider:
name: ${self:custom.secrets.provider.name}
runtime: ${self:custom.secrets.provider.runtime}
stage: ${self:custom.secrets.provider.stage, 'dev'}
region: ${self:custom.secrets.provider.region}
environment:
STAGE: ${self:provider.stage}
REGION: ${self:provider.region}
BOT_NAME: ${self:custom.secrets.provider.environment.BOT_NAME}-${self:provider.stage}
TELEGRAM_SEND_MESSAGE_URL: ${self:custom.secrets.provider.environment.TELEGRAM_SEND_MESSAGE_URL}
CLIENT_ID: ${self:custom.secrets.provider.environment.CLIENT_ID}
CLIENT_SECRET: ${self:custom.secrets.provider.environment.CLIENT_SECRET}
MONGO_USER: ${self:custom.secrets.provider.environment.MONGO_USER}
MONGO_PASSWORD: ${self:custom.secrets.provider.environment.MONGO_PASSWORD}
MONGO_HOST: ${self:custom.secrets.provider.environment.MONGO_HOST}
MONGO_DATABASE: ${self:custom.secrets.provider.environment.MONGO_DATABASE}
USERNAME: ${self:custom.secrets.provider.environment.USERNAME}
PASSWORD: ${self:custom.secrets.provider.environment.PASSWORD}
functions:
qr: ${file(./src/functions/qr/function.yml)}
qrUpdate: ${file(./src/functions/qr_update/function.yml)}