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?

demandé il y a 3 ans283 vues
3 réponses
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
EXPERT
répondu il y a 3 ans
  • 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!

répondu il y a 3 ans
0

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

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions