I have a AWS Lambda which publishes data to a AWS IOT topic A and waits for the result, which will be published to a different topic B.
I was wondering how to get this data from topic B when the thing publishes it to the already running lambda.
I was not able to find any equivalent to get_thing_shadow for a particular topic https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iot-data.html#id4
Eg:
Lambda1 -> IOT Topic A -> Thing
Lambda1 waiting
Thing -> IOT Topic B
Lambda1 reads from Topic B and updates say DB and dies.
I was wondering how this can be done.
For some reasons we are unable to use IOT Shadow anymore.
Current architecture:
Lambda1 -> IOT Shadow Desired -> Thing
Lambda1 -> waits for 5 sec
Lambda1 -> reads IOT Shadow Reported -> success or failure
If failure Lambda1 -> resets IOT Desired to old state -> exists