@@ -42,8 +42,8 @@ Resources:
4242 Type : MSK
4343 Properties :
4444 StartingPosition : LATEST
45- BatchSize : 10
46- MaximumBatchingWindowInSeconds : 300
45+ BatchSize : 1
46+ MaximumBatchingWindowInSeconds : 1
4747 Stream : !Join [ '', ["arn:", "aws:", "kafka:", !Ref "AWS::Region" , ":" ,!Ref "AWS::AccountId", ":", "cluster/", !Ref MSKClusterName, "/" , !Ref MSKClusterId] ]
4848 Topics :
4949 - !Ref MSKTopic
@@ -52,7 +52,7 @@ Resources:
5252 Destination : !GetAtt ConsumerDLQ.Arn
5353 FilterCriteria :
5454 Filters :
55- - Pattern : ' { "value": { "zip": [ { "prefix": "2000" } ] }}'
55+ - Pattern : ' {"value": {"zip": [ { "prefix": "2000" } ]}}'
5656 Policies :
5757 - Statement :
5858 - Sid : KafkaClusterPermissionsPolicy
@@ -128,7 +128,8 @@ Resources:
128128 Environment :
129129 Variables :
130130 MSK_CLUSTER_ARN : !Join [ '', ["arn:", "aws:", "kafka:", !Ref "AWS::Region" , ":" ,!Ref "AWS::AccountId", ":", "cluster/", !Ref MSKClusterName, "/" , !Ref MSKClusterId] ]
131- KAFKA_TOPIC : !Ref MSKTopic
131+ MSK_TOPIC : !Ref MSKTopic
132+ REGISTRY_NAME : !Ref GlueSchemaRegistryName
132133 CONTACT_SCHEMA_NAME : !Ref ContactSchemaName
133134 JAVA_TOOL_OPTIONS : -XX:+TieredCompilation -XX:TieredStopAtLevel=1
134135 Policies :
@@ -194,10 +195,14 @@ Parameters:
194195 Type : String
195196 Description : Enter the name of the MSK Topic
196197 Default : KAFKA_TOPIC
198+ GlueSchemaRegistryName :
199+ Type : String
200+ Description : Enter the name of the Glue Schema Registry
201+ Default : GLUE_SCHEMA_REGISTRY_NAME
197202 ContactSchemaName :
198203 Type : String
199204 Description : Enter the name of the Contact Schema
200- Default : ContactSchema
205+ Default : AVRO_SCHEMA
201206 VpcId :
202207 Type : String
203208 Description : Enter the VPC ID where the MSK cluster is deployed
@@ -209,7 +214,7 @@ Parameters:
209214 SecurityGroupIds :
210215 Type : CommaDelimitedList
211216 Description : Enter the security group IDs that allow access to the MSK cluster (comma-separated)
212- Default : SECURITY_GROUP_IDS
217+ Default : LAMBDA_SECURITY_GROUP_ID
213218
214219Outputs :
215220 MSKConsumerLambdaFunction :
0 commit comments