In local Kafka messages are consuming successfully with the below application configuration
spring:
cloud:
stream:
kafka:
binder:
replicationFactor: 1
auto-create-topics: true
brokers: localhost:9092
bindings:
binding-in-sse:
destination: sse-topic
content-type: text/plain
group: earlywage
binding-out-sse:
destination: sse-topic
content-type: text/plain
group: earlywage
Now in Dev need to configure with msk. The MSK configurations are as follows :
3 Partitions, 3 Replicas, 2 Brokers, SASL/SCRAM authentication, retention.ms=604800000, max.message.bytes=2097164.
vpc is private and trying to connect inside same vpc with the following config.
spring:
cloud:
stream:
kafka:
binder:
replicationFactor: 1
auto-create-topics: true
brokers:
- b-1.****.***.c2.kafka.REGION.amazonaws.com:PORT
- b-2.****.***.c2.kafka.REGION.amazonaws.com:PORT
configuration:
security.protocol: SASL_PLAINTEXT
sasl.mechanism: SCRAM-SHA-512
sasl:
jaas:
config: org.apache.kafka.common.security.scram.ScramLoginModule required username="***" password="*****";
bindings:
binding-in-sse:
destination: sse-topic
content-type: text/plain
group: earlywage
binding-out-sse:
destination: sse-topic
content-type: text/plain
group: earlywage
What is the correct config required to consume the message from the brokers. Thank you.