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개 답변
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
전문가
Greg_B
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인