forked from tobyhede/event-spike
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
50 lines (44 loc) · 893 Bytes
/
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
service: event-spike
provider:
name: aws
runtime: nodejs10.x
stage: dev
region: ap-southeast-2
functions:
sqs:
handler: sqs.handler
reservedConcurrency: 1
events:
- sqs:
arn:
Fn::GetAtt:
- Stream
- Arn
batchSize: 1
kinesis:
handler: kinesis.handler
reservedConcurrency: 1
events:
- stream:
type: kinesis
arn:
Fn::GetAtt:
- Stream
- Arn
pause:
handler: pause.handler
events:
- http:
path: /{fn}/pause
method: get
resources:
Resources:
Stream:
Type: AWS::Kinesis::Stream
Properties:
Name: event-spike-kinesis-${self:provider.stage}
ShardCount: 1
Queue:
Type: AWS::SQS::Queue
Properties:
QueueName: event-spike-sqs-${self:provider.stage}