awslabs / aws-greengrass-group-setup

File-driven creation of an entire AWS Greengrass group
Apache License 2.0
54 stars 23 forks source link

Unable to add deivces to GG group using CLI Commands #21

Open shintovincent opened 5 years ago

shintovincent commented 5 years ago

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?

abawchen commented 5 years ago

@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