Is there a way to read the group name in a component or environment var?

0

I am using Greengrass V2 and I would like a way to read the current group the device belongs to. I don't need the group hierarchy but that would also be fine. Does anyone know if there is an environment variable for this? I can use the environment variable AWS_IOT_THING_NAME for the device name and I'm hoping there is something for group as well. If there isn't an environment variable is there a component level configuration that can be read, something like '{configuration:/DEPLOYMENT_GROUP}'?

Thanks

質問済み 3年前260ビュー
2回答
0

Hi,

This is not currently supported. In the meantime, would you be able to use the ListThingGroupsForThing API to get the group name from the thing name?
https://docs.aws.amazon.com/iot/latest/developerguide/thing-groups.html#list-thing-groups-for-thing

Thanks,
AV

AWS
回答済み 3年前
0

Thanks for the suggestion. I think that will work for me.

回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ