-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
82 lines (70 loc) · 1.65 KB
/
serverless.yml
File metadata and controls
82 lines (70 loc) · 1.65 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
service: blog-post
# app and org for use with dashboard.serverless.com
#app: your-app-name
#org: your-org-name
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs12.x
stage: dev
region: us-east-1
custom:
fileUploadBucketName: ${self:service}-bucket-${self:provider.stage}
plugins:
- serverless-iam-roles-per-function
functions:
# blogs functions
getAllBlogs:
handler: src/handlers/blogsHandler.getAll
timeout: 60
memorySize: 128
createBlog:
handler: src/handlers/blogsHandler.create
timeout: 60
memorySize: 128
events:
- httpApi:
path: /blogs/create
method: post
updateBlog:
handler: src/handlers/blogsHandler.update
timeout: 60
memorySize: 128
events:
- httpApi:
path: /blogs/update
method: put
deleteBlog:
handler: src/handlers/blogsHandler.delete
timeout: 60
memorySize: 128
events:
- httpApi:
path: /blogs/delete
method: delete
getBlogById:
handler: src/handlers/blogsHandler.findById
timeout: 60
memorySize: 128
events:
- httpApi:
path: /blogs/findById
method: post
getBlogsByWriter:
handler: src/handlers/blogsHandler.findByIdWriter
timeout: 60
memorySize: 128
events:
- httpApi:
path: /blogs/findByIdWriter
method: post
createUser:
handler: src/handlers/userHandler.create
timeout: 60
memorySize: 128
events:
- httpApi:
path: /users/create
method: post