-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
66 lines (64 loc) · 1.32 KB
/
serverless.yml
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
service: wonderq
plugins:
- serverless-webpack
- serverless-finch
custom:
webpackIncludeModules: true
client:
bucketName: quick-start-dev-serverlessdeploymentbucket-ntikgcvze067
provider:
name: aws
vpc:
securityGroupIds:
- sg-2547fb43
subnetIds:
- subnet-4814e13e
runtime: nodejs6.10
stage: dev
region: us-east-1
environment:
REDIS_HOST: wonderq.bewcvz.ng.0001.use1.cache.amazonaws.com
REDIS_PORT: '6379'
functions:
init:
handler: handler.init
events:
- http:
path: /init
method: post
cors: true
listQueues:
handler: handler.listQueues
events:
- http:
path: /queues
method: get
cors: true
sendMessage:
handler: handler.sendMessage
events:
- http:
path: /messages/send
method: post
cors: true
receiveMessage:
handler: handler.receiveMessage
events:
- http:
path: /messages/receive
method: get
cors: true
deleteMessage:
handler: handler.deleteMessage
events:
- http:
path: /messages/delete
method: post
cors: true
getInfo:
handler: handler.getInfo
events:
- http:
path: /info
method: get
cors: true