IoT Core Rule SQL - Access 'Thing' attribute

1

Hi,

I'd like to enrich messages received by an IoT Core rule with the value of an attribute assigned to the 'Thing' representation of my device, but the only way to do this seems to be to use the aws_lambda SQL function as described here: https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-func-aws-lambda, which seems a rather awkward way of accessing information already stored and managed inside of IoT Core.

Is there a better way of accessing 'Thing' attributes within an IoT Core rule SQL statement?

Many thanks.

cgddrd
已提问 2 年前1065 查看次数
1 回答
1
已接受的回答

At this time, there's no handy SQL function to retrieve Thing attributes.

If you use a Lambda to call DescribeThing, please be aware also of the service limits that you may hit if processing a lot of messages. The DescribeThing limit is adjustable. However, if you have very heavy load, it may be better to store the attribute information somewhere else (in a shadow, DynamoDB, etc).

profile pictureAWS
专家
Greg_B
已回答 2 年前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则