Search code examples
amazon-web-servicesaws-iot

How to create AWS IoT thing using https call


There is API end point described in aws documentation, https://docs.aws.amazon.com/iot/latest/apireference/API_CreateThing.html But can't make it work, which prefix should i use and how to provide my account info to this endpoint?

I tried using data prefix with my iot certificates and got 404 Also i tried using control plane prefix with same certificates and got 403 https://docs.aws.amazon.com/general/latest/gr/iot-core.html#iot-core-control-plane-endpoints


Solution

  • As mentioned in my comment, to programmatically work with the IoT Service to perform tasks such as creating an IoT Thing, creating a cert, attaching a cert to an IoT Thing, etc, then use the IoT Service client. There are code examples located in the AWS Code Lib here:

    Code examples for AWS IoT using AWS SDKs

    To make sure you can get up and running, i suggest you start with this the Hello AWS IoT program that you can access here.

    Hello AWS IoT