-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
42 lines (36 loc) · 909 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: serverless-bonk-template
# Create an optimized package for our functions
package:
individually: true
resources:
# DynamoDB tables
- ${file(resources/example-table.yaml)}
custom:
prune:
automatic: true
includeLayers: true
number: 3
stage: ${opt:stage, self:provider.stage}
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
plugins:
- serverless-webpack
- serverless-offline
- serverless-dotenv-plugin
- serverless-prune-plugin
- serverless-iam-roles-per-function
provider:
name: aws
runtime: nodejs12.x
stage: ${env:ENV}
region: ${env:REGION}
lambdaHashingVersion: 20201221
apiGateway:
minimumCompressionSize: 1024 # Enable gzip compression for responses > 1 KB
shouldStartNameWithService: true
environment:
AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1
functions:
${file(src/functions/example/exmaple.yaml)}