-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
214 lines (186 loc) · 4.36 KB
/
serverless.yml
File metadata and controls
214 lines (186 loc) · 4.36 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
service: madcampHttpApi
plugins:
- serverless-webpack
- serverless-dotenv-plugin
provider:
name: aws
runtime: nodejs20.x
region: ap-northeast-2
environment:
DB_HOST: env:DB_HOST
DB_USER: env:DB_USER
DB_PASSWORD: env:DB_PASSWORD
DB_NAME: env:DB_NAME
KAKAO_API_KEY: env:KAKAO_API_KEY
KAKAO_REDIRECT_URI: env:KAKAO_REDIRECT_URI
vpc:
securityGroupIds:
- sg-0bd76336ac022c789
subnetIds:
- subnet-001a15c2ef77a9373
- subnet-02e6087dc234cade6
- subnet-022aff2afd3d4b04c
- subnet-0ba52e4d4989dc7cd
- subnet-0f1711463d45b9403
- subnet-0f4be7b9141369908
iam:
role: arn:aws:iam::730335448938:role/lambda-rds
functions:
kakaoLogin:
handler: src/login.kakao
timeout: 10
events:
- httpApi:
path: /oauth
method: get
getAllUsers:
handler: src/user.getAllUsers
timeout: 10
events:
- httpApi:
path: /user
method: get
getUserById:
handler: src/user.getUserById
timeout: 10
events:
- httpApi:
path: /user/{userId}
method: get
changeUserInfo:
handler: src/user.changeUserInfo
timeout: 10
events:
- httpApi:
path: /user/{userId}
method: put
getAllOpenRooms:
handler: src/room.getAllOpenRooms
events:
- httpApi:
path: /room/open
method: get
createRoom:
handler: src/room.createRoom
events:
- httpApi:
path: /room
method: post
deleteRoom:
handler: src/room.deleteRoom
events:
- httpApi:
path: /room/{roomId}
method: delete
closeRoom:
handler: src/room.closeRoom
events:
- httpApi:
path: /room/{roomId}
method: put
enterRoom:
handler: src/room.enterRoom
events:
- httpApi:
path: /room/{roomId}/user
method: post
getAllUsersInRoom:
handler: src/room.getAllUsersInRoom
events:
- httpApi:
path: /room/{roomId}/user
method: get
updateScore:
handler: src/room.updateScore
events:
- httpApi:
path: /room/{roomId}/{userId}
method: put
deleteUserInRoom:
handler: src/room.deleteUserInRoom
events:
- httpApi:
path: /room/{roomId}/{userId}
method: delete
getRoomById:
handler: src/room.getRoomById
events:
- httpApi:
path: /room/{roomId}
method: get
getUserScoreInRoom:
handler: src/room.getUserScoreInRoom
events:
- httpApi:
path: /room/{roomId}/{userId}/score
method: get
# getReservedSongs:
# handler: src/roomSong.getReservedSongs
# events:
# - httpApi:
# path: /room/{roomId}/song
# method: get
# addSongToRoom:
# handler: src/roomSong.addSongToRoom
# events:
# - httpApi:
# path: /room/{roomId}/song
# method: post
# updateSongStatus:
# handler: src/roomSong.updateSongStatus
# events:
# - httpApi:
# path: /room/{roomId}/song/{songId}
# method: put
# cancelReservation:
# handler: src/roomSong.cancelReservation
# events:
# - httpApi:
# path: /room/{roomId}/song/{songId}
# method: delete
getFollowers:
handler: src/friends.getFollowers
events:
- httpApi:
path: /friends/{userId}/follower
method: get
getFollowings:
handler: src/friends.getFollowings
events:
- httpApi:
path: /friends/{userId}/following
method: get
checkFollowing:
handler: src/friends.checkFollowing
events:
- httpApi:
path: /friends/{userId}/{targetUserId}
method: get
followUser:
handler: src/friends.followUser
events:
- httpApi:
path: /friends/{userId}/following
method: post
unfollowUser:
handler: src/friends.unfollowUser
events:
- httpApi:
path: /friends/{userId}/unfollow/{followingId}
method: delete
blockFollower:
handler: src/friends.blockFollower
events:
- httpApi:
path: /friends/{userId}/block/{followerId}
method: delete
package:
exclude:
- node_modules/**
- test/**
- src/**/*.spec.ts
- src/**/*.test.ts
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true