-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
42 lines (38 loc) · 915 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:
name: ida-auth-api
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
# Add the serverless-webpack plugin
plugins:
- serverless-offline
- serverless-webpack
provider:
name: aws
runtime: nodejs12.x
# region: ${env:AWS_REGION}
stage: ${opt:stage, 'dev'}
apiGateway:
minimumCompressionSize: 1024 # Enable gzip compression for responses > 1 KB
# environment:
# AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1
# NODE_ENV: ${env:NODE_ENV}
# DB_NAME: ${env:DB_NAME}
# DB_USER: ${env:DB_USER}
# DB_PASSWORD: ${env:DB_PASSWORD}
# DB_HOST: ${env:DB_HOST}
# DB_PORT: ${env:DB_PORT}
functions:
db_connection_test:
handler: src/handler.dbConn
events:
- http:
method: get
path: debug1
# hello:
# handler: src/handler.hello
# events:
# - http:
# method: get
# path: hello