Retrieve IoT MQTT message client ID in Lambda function when using Basic Ingest

0

Hello. Is there any way to retrieve the client ID from an IoT message in a Lambda function when using Basic Ingest? It looks like it is included in neither the event or context values passed in to the Lambda handler function. Thanks!

1 Answer
0

Hi. Are you using the clientid() SQL function?

https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-sql-function-clientid

Like this:

SELECT *, clientid() AS clientId FROM 'foobar'
profile pictureAWS
EXPERT
Greg_B
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions