The following diagram explains the architecture of the solution:
The Things or smart devices connect over MQTT-S with AWS IoT Core. Then the device is authenticated, authorized, and validated and the connection gets established. For authentication, we are using a device certificate that we generated while registering a device. Once the connection is established, the device can create its own MQTT topics and then publish or subscribe to them.
But in our example, we are not going to create new topics. Instead, we are going to work with a concept named Device Shadow provided by AWS IoT Core.
All the data that goes through the AWS ...