Manual installation of GGC V2 Core device

0

Hi,
In our project we've managed to add the greengrass to our Yocto image. The fresh greengrass is in /greengrass/v2 directory. It can start but obviously it's starting with all the default values.
Installation greengrass by executing the commands from https://docs.aws.amazon.com/greengrass/v2/developerguide/getting-started.html is not an option.
What we need is to prepare the config files and other stuff so that the greengrass will be able to connect to to cloud and operate. We can generate the certificates and other needed stuff and ship to the device. Any examples on that field or maybe some hints?
Is it possible to setup while configs in /greengrass/v2/config manually?

已提问 3 年前304 查看次数
3 回答
0

We now have documentation for manually setting up Greengrass. See: https://docs.aws.amazon.com/greengrass/v2/developerguide/manual-installation.html

Cheers,
Michael Dombrowski

AWS
专家
已回答 3 年前
  • One detail missing from that document is to know what other things happen when we run the command sudo -E java -Droot="/greengrass/v2" -Dlog.store=FILE \ -jar ./GreengrassInstaller/lib/Greengrass.jar \ --init-config ./GreengrassInstaller/config.yaml \ --component-default-user ggc_user:ggc_group \ --setup-system-service true

    I see that it installs /etc/systemd/system/greengrass.service - are there any other changes made outside the greengrass directory?

0

Hi, we're doing exactly this right now. We generate the device certs ourselves, and I have a "deviceConfig.tmp" template file that our install scripts take the thing name and substitute that in the template and generate "deviceConfig.yaml". From there we can pass:

--config ./deviceConfig.yaml

in to the installer and it will use those values. We also have a provisioning template attached to our CA to provision the IoT thing. When Greengrass starts, it will (after two minutes) send the appropriate messages, and a GG Core device is automatically created.

Hope that helps!

已回答 3 年前
0

Hi,
Many thanks for some advices. I will try to implement something similar on our end.

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则