MSK Event configuration for AWS Lambda
Resources:
ProcessMSKfunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: code/
Timeout: 3
Handler: app.lambdaHandler
Runtime: nodejs12.x
Events:
MSKEvent:
Type: MSK
Properties:
StartingPosition: LATEST
Stream: arn:aws:kafka:us-east-1:123456789012:cluster/my-cluster/12abcd12-1234-1234-1234-1234abcd1234-1
Topics:
- MyTopic
Policies:
- AWSLambdaMSKExecutionRole: {}