Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Iot rest api

I currently have a sensor sending data to AWS but I'm having issues figuring out the current status. For example, the sensor sends it's most recent status and I would like to view its status via http/s. Im currently trying to via my devices current status via

https://endpoint/things/thingName/shadow

or

https://something.iot.region.amazonaws.com/things/MyDevice/shadow

The only response I get back is the following.

{"message":"Custom Authorizers are not allowed for this
API","traceId":"123432-2343-23423-2343-12132432"}

I know that there's some form of authentication but I cannot seem to find any example on how to call these endpoints.

like image 398
Jim Avatar asked Aug 05 '26 15:08

Jim


1 Answers

Read the Authorization section here.

The Thing Shadows service accepts two forms of authentication: Signature Version 4 with IAM credentials or TLS mutual authentication with a client certificate.

It might be easier for you to use the AWS SDK to retrieve the thing shadow.

like image 168
Mark B Avatar answered Aug 08 '26 16:08

Mark B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!