-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yaml
More file actions
55 lines (55 loc) · 1.31 KB
/
serverless.yaml
File metadata and controls
55 lines (55 loc) · 1.31 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
service: "a-service"
frameworkVersion: "3"
package:
individually: true
custom:
stage: "${opt:stage, self:provider.stage}"
region: "${opt:region, self:provider.region}"
prefix: "${self:service}-${self:custom.stage}"
esbuild:
bundle: true
minify: false
sourcemap: true
exclude:
- "aws-sdk"
target: "node14"
define: {}
platform: "node"
serverless-offline:
httpPort: 3003
plugins:
- "serverless-esbuild"
- "serverless-offline"
- "serverless-dotenv-plugin"
provider:
name: "aws"
timeout: 30
stage: "localhost"
runtime: "nodejs14.x"
region: "us-east-1"
apiGateway:
minimumCompressionSize: 1024
shouldStartNameWithService: true
environment:
AWS_NODEJS_CONNECTION_REUSE_ENABLED: "1"
NODE_OPTIONS: "--enable-source-maps --stack-trace-limit=1000"
REGION: "${self:custom.region}"
STAGE: "${self:custom.stage}"
DYNAMODB_LOCAL_ENDPOINT: "http://localhost:8000"
lambdaHashingVersion: "20201221"
functions:
fn:
handler: "src/functions/fn/handler.main"
timeout: 30
events:
- http:
method: "post"
path: "/test"
request:
schema:
application/json:
type: "object"
properties:
name:
type: "string"
resources: {}