-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
57 lines (53 loc) · 1.23 KB
/
Copy pathserverless.yml
File metadata and controls
57 lines (53 loc) · 1.23 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
56
57
service: appdev-ts-lambda-training
provider:
name: aws
runtime: nodejs20.x
stage: ${opt:stage, 'dev'}
package:
individually: true
functions:
getCar:
handler: src/functions/getCar/framework/handler.handler
events:
- http:
path: 'cars/{value?}'
method: get
getPokemonByName:
handler: src/functions/getPokemonByName/framework/handler.handler
events:
- http:
path: 'pokemon/{name?}'
method: get
postCar:
handler: src/functions/postCar/framework/handler.handler
events:
- http:
path: 'cars'
method: post
patchCar:
handler: src/functions/patchCar/framework/handler.handler
events:
- http:
path: 'cars/{value?}'
method: patch
updateCar:
handler: src/functions/updateCar/framework/handler.handler
events:
- http:
path: 'cars/{value?}'
method: put
deleteCar:
handler: src/functions/deleteCar/framework/handler.handler
events:
- http:
path: 'cars/{value?}'
method: delete
custom:
stages:
- dev
webpack:
webpackConfig: 'webpack-sls-offline.config.js'
plugins:
- serverless-dotenv-plugin
- serverless-webpack
- serverless-offline