-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml.dist
More file actions
43 lines (40 loc) · 948 Bytes
/
serverless.yml.dist
File metadata and controls
43 lines (40 loc) · 948 Bytes
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:
name: typescript-trial-1
plugins:
- serverless-webpack
- serverless-plugin-tracing
provider:
name: aws
runtime: nodejs8.10
stage: dev
profile: xxxxxxxxxxxxxxxxxxxx
region: eu-west-1
tracing: true
iamRoleStatements:
- Effect: "Allow"
Action:
- "xray:PutTraceSegments"
- "xray:PutTelemetryRecords"
Resource:
- "*"
functions:
hello:
handler: handler.hello
events:
- http:
method: get
path: hello
environment:
DB_HOST: xxxxxxxxxxxxxxxxxxxx
DB_USER: xxxxxxxxxxxxxxxxxxxx
DB_PASS: xxxxxxxxxxxxxxxxxxxx
DB_NAME: xxxxxxxxxxxxxxxxxxxx
vpc:
securityGroupIds:
- xxxxxxxxxxxxxxxxxxxx
subnetIds:
- xxxxxxxxxxxxxxxxxxxx
- xxxxxxxxxxxxxxxxxxxx
- xxxxxxxxxxxxxxxxxxxx
memorySize: 256
timeout: 30 # optional, in seconds, default is 6, api gateway times out after 30 anyway