awslabs/aws-greengrass-group-setup

Unable to add deivces to GG group using CLI Commands

shintovincent opened this issue · 1 comments

These are the commands that I used to create a group:
gg_group_setup create-core --thing-name GGCore --config-file sampleconfig.json --region us-east-1 --cert-dir corecerts
gg_group_setup create-devices --thing-names '[device1, device2, device3]' --config-file sampleconfig.json --region us-east-1 --cert-dir devicecerts
Started greengrass daemon in the core
gg_group_setup create --group-type mock --config-file sampleconfig.json --region us-east-1
gg_group_setup deploy --config-file sampleconfig.json --region us-east-1

Deployment is successful but the group is created with a core and no devices. The things has been created in IoT but not attached to the group.

Is there any limitations while using the gg_group_setup CLI or is it possible only by writing a custom groupType using gg_group_setup as a library?

@shintovincent
In this sample repo, only device named GGD_example will be added to group, that I think you have to modify the code accordingly.

ref: https://github.com/awslabs/aws-greengrass-group-setup/blob/master/gg_group_setup/mock_group.py#L33