Get Thing ID (ARN) in Lambda IoT MQTT handle

0

Can a Lambda action get the Thing ID (its ARN, or some way to uniquely identify it)? Is the answer different if you do or don't use basic ingestion?

I searched the forum before I asked this, one clue I found was this:

https://repost.aws/questions/QUT4KAUvqKQOS0v2Abgpxt-g/aws-io-t-thing-connected-event-find-the-thing-name-from-event

which suggest I can change the role to include:

        "Resource": [
          "arn:aws:iot:us-east-1:123456789012:client/${iot:Connection.Thing.ThingName}"
        ]

if I get the idea behind that, I could force devices to set their MQTT client id to be the same as their ThingName, and to use that I would include clientId() in the SELECT.

Is that the simplest way?

--C

profile picture
wz2b
질문됨 2년 전196회 조회
1개 답변
0
수락된 답변

I re-read the previous posts that were similar and I think that's the best way ... so I'm going to close this.

profile picture
wz2b
답변함 2년 전

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

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

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

관련 콘텐츠