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?

feita há 3 anos322 visualizações
3 Respostas
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
ESPECIALISTA
respondido há 3 anos
  • 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!

respondido há 3 anos
0

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

respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas