Hi @Kiran Hebbar,
In the below commands, replace the value localhost with ip/hostname of your kafka broker which is in cloud.
kafka/bin/kafka-console-producer.sh \
--broker-list localhost:9092 \
--topic my-topic
kafka/bin/kafka-console-consumer.sh \
--bootstrap-server localhost:9092 \
--topic my-topic \
--from-beginning
Thanks,
Aditya