Designing the sample application
In this section, we are going to build the same sample application using the AWS IoT Stack.
Solution
The solution we are going to build is going to be similar to the one from Chapter 3, Getting Started with IoT Platforms. We are going to connect a DHT11 sensor to Raspberry Pi 3 and then transmit the data over to the AWS IoT platform using MQTT-S. Then we'll take that data and pass it on to Elasticsearch and Kibana to build visualization.
In the next section, we are going to look at the overall architecture of the solution.
Architecture
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...