-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yaml
43 lines (37 loc) · 1.2 KB
/
serverless.yaml
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
service:nestjs-api-boilerplate
useDotenv: true
plugins:
- serverless-offline
provider:
name: aws
runtime: nodejs14.x
environment:
TYPEORM_PORT: ${env:TYPEORM_PORT}
TYPEORM_SYNCHRONIZE: ${env:TYPEORM_SYNCHRONIZE}
TYPEORM_LOGGING: ${env:TYPEORM_LOGGING}
TYPEORM_ENTITIES: ${env:TYPEORM_ENTITIES}
TYPEORM_ENTITIES_DIR: ${env:TYPEORM_ENTITIES_DIR}
TYPEORM_MIGRATIONS: ${env:TYPEORM_MIGRATIONS}
TYPEORM_MIGRATIONS_DIR: ${env:TYPEORM_MIGRATIONS_DIR}
TYPEORM_SUBSCRIBERS: ${env:TYPEORM_SUBSCRIBERS}
TYPEORM_SUBSCRIBERS_DIR: ${env:TYPEORM_SUBSCRIBERS_DIR}
DATABASE_HOST: ${env:DATABASE_HOST}
DATABASE_PORT: ${env:DATABASE_PORT}
DATABASE_USERNAME: ${env:DATABASE_USERNAME}
DATABASE_PASSWORD: ${env:DATABASE_PASSWORD}
DATABASE_NAME: ${env:DATABASE_NAME}
TYPEORM_CONNECTION: ${env:TYPEORM_CONNECTION}
TYPEORM_HOST: ${env:TYPEORM_HOST}
TYPEORM_USERNAME: ${env:TYPEORM_USERNAME}
TYPEORM_PASSWORD: ${env:TYPEORM_PASSWORD}
TYPEORM_DATABASE: ${env:TYPEORM_DATABASE}
functions:
main:
handler: dist/serverless.handler
events:
- http:
method: ANY
path: /
- http:
method: ANY
path: '{proxy+}'