add existing things to a Greengrass group

0

We know how to do this via the console as detailed at

https://docs.aws.amazon.com/greengrass/latest/developerguide/device-group.html

and have demoed this for a few, eg. in this video

https://www.youtube.com/watch?v=li3oiabEfD8

but now want to add 100 (later 1000) existing things to a greengrass group.
It is not clear from the API spec what calls to use and I cannot find
it in the guides, blogs, videos, etc.
Would prefer the Python flavor of the API, but at this point I'll take anything.
Thank you.

질문됨 5년 전235회 조회
2개 답변
0

Figured it out.
This shows a scenario of 100 sensors to Greengrass.

https://gambitcomm.blogspot.com/2019/10/dynamic-real-time-predictable-testing.html

답변함 5년 전
0

Hi uwegambitcomm,

I am glad you figured it out.

For others that may be running into this issue, Greengrass APIs use versioned resources so it will take several API calls.

You would need to use the following APIs:

GetGroup: https://docs.aws.amazon.com/greengrass/latest/apireference/getgroup-get.html to get the latest version

GetGroupVersion: https://docs.aws.amazon.com/greengrass/latest/apireference/getgroupversion-get.html to get the versioned resources in that group. You will use this to get the device definition version id.

https://docs.aws.amazon.com/greengrass/latest/apireference/getdevicedefinitionversion-get.html - you get the list of devices from the device definition.

https://docs.aws.amazon.com/greengrass/latest/apireference/createdevicedefinitionversion-post.html - you will create a new list of devices using this API and it will return a new device definition id

https://docs.aws.amazon.com/greengrass/latest/apireference/creategroupversion-post.html - you will create a new group version with the new device definition id.

Then you would need to create a deployment using the CreateDeployment api:
https://docs.aws.amazon.com/greengrass/latest/apireference/createdeployment-post.html
This takes the group version id

AWS
Rob
답변함 5년 전

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

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

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

관련 콘텐츠