Developing on AWS IoT
In this example, we will adapt our previous MQTT application to the AWS cloud.
Before starting the example, we need to have an AWS account and install the aws
command-line tool. If you haven't done so yet, the AWS documentation provides excellent guidance:
- Getting started with AWS IoT Core: https://docs.aws.amazon.com/iot/latest/developerguide/iot-gs.html
- Installing, updating, and uninstalling the AWS CLI version 2: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
- Configuring the AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html
After installing aws
, we will create a thing in AWS IoT Core. A thing is the representation of a physical IoT device in the cloud. We create and configure it as follows:
- First check that the
aws
command-line tool works:$ aws --version aws-cli/2.1.31 Python/3.8.8 Linux/5.4.0-65-generic exe/x86_64.ubuntu.20 prompt/off
- Create a thing using...