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년 전283회 조회
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년 전

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

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

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

관련 콘텐츠