-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
37 lines (33 loc) · 961 Bytes
/
Copy pathtemplate.yaml
File metadata and controls
37 lines (33 loc) · 961 Bytes
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sam-kinesis-lambda-java
Sample SAM Template for sam-kinesis-lambda-java
Parameters:
KinesisStreamName:
Type: String
Resources:
KinesisEventsStream:
Type: AWS::Kinesis::Stream
Properties:
Name: !Ref KinesisStreamName
ShardCount: 2
EventsConsumerFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: kinesis-lambda-consumer
Handler: com.demo.kinesis.EventsConsumer::handleRequest
Runtime: java17
Timeout: 60
MemorySize: 512
Events:
StreamRecordsBatch:
Type: Kinesis
Properties:
Stream: !GetAtt KinesisEventsStream.Arn
BatchSize: 20
MaximumBatchingWindowInSeconds: 45
StartingPosition: TRIM_HORIZON
MaximumRetryAttempts: 3
Enabled: true
BisectBatchOnFunctionError: true