Esp32 config with AWS MQTT using esp idf

I’m working on 2 esp32 where both having same certificate and keys. In my case one esp32 is publish data to AWS mqtt server with topic data/json and second esp32 is subscribed with same topic with AWS mqtt. but i’m facing problem which is i’m not able to get data from AWS mqtt but i publish data sucessfully.
also if i create any json in AWS mqtt and publish from AWS so i get that json in my second esp32 but only thing which im not receiving is data from first esp32.