-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathserverless.yml
More file actions
43 lines (38 loc) · 814 Bytes
/
serverless.yml
File metadata and controls
43 lines (38 loc) · 814 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: serverless-nodejs-testing
frameworkVersion: '2'
provider:
name: aws
runtime: nodejs12.x
lambdaHashingVersion: '20201221'
stage: dev
environment:
WORLD_FUNC: ${self:service}-${self:provider.stage}-world
iam:
role:
statements:
- Effect: 'Allow'
Action:
- 'lambda:InvokeFunction'
Resource: '*'
custom:
serverless-offline:
httpPort: 4000
lambdaPort: 4001
endpoint: http://localhost:4001
functions:
hello:
handler: functions/index.hello
events:
- http:
path: /hello
method: get
world:
handler: functions/index.world
reverse:
handler: functions/reverseFunc.handler
events:
- http:
path: /reverse
method: get
plugins:
- serverless-offline