How to manage IoT infrastructure using the AWS CLI, CDK, and SDK
Overview In this post, I will present differences in AWS IoT infrastructure management using CLI, CDK, and SDK.
As an example, we will create an IoT Thing using all of those approaches.
Setup CLI The AWS Command Line Interface (AWS CLI) enables interaction with AWS services using commands invoked in a shell.
Creating an IoT Thing using the AWS CLI is simple:
1 2 3 4 5 6 7 aws iot create-thing --thing-name cli-thing-0001 # { # "thingName": "cli-thing-0001", # "thingArn": "arn:aws:iot:eu-west-1:693854281758:thing/cli-thing-0001", # "thingId": "0f17b3b9-c77c-442e-9a25-ff04108729ef" # } We can check the outcome by invoking the following command: