Best Practice Question: IPC using external component e.g. captive portal system service #1090
-
Hi, I have a question regarding IPC on our Greengrass v2 device which is built using yocto. We have a captive portal for initial device configuration (networking, provision by trusted user flow, etc.). The greengrass v2 documentation regarding IPC sounds like IPC is only possible among components running inside the greengrass runtime. Is that interpretation correct? If yes, is there an option to query deployment status from an external system service such as a captive portal? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi Martin, Thanks for posing this questions. I'm actually thinking on doing a small blog post on how to interface GGv2, stay tuned for that. As to answer your question you would need 2 variables in order to access the IPC:
If there is no option for you to have the captive portal deployed as a GGv2 component, I suggest you:
More about env variables available inside the greengrass component: https://docs.aws.amazon.com/greengrass/v2/developerguide/component-environment-variables.html |
Beta Was this translation helpful? Give feedback.
-
Hi @nenadilic84! Thanks for the thorough and timely response! The second option sounds promising! Do you know whether it is possible to provision components in advance using yocto? |
Beta Was this translation helpful? Give feedback.
-
Yes, that would definitely be possible. On which files you would need to add and their location I suggest you take a look at the installation after using the easy setup on, for example on ubuntu:
Where you have the This will provide the layout for packages directory that includes the I tried this long time ago and it did work, but if you are doing this, please let me know as we might want to include this in the recipe as well. |
Beta Was this translation helpful? Give feedback.
Yes, that would definitely be possible.
To do this you would need to append files to the original greengrass recipe that adds the
greengrass-cli
component.On which files you would need to add and their location I suggest you take a look at the installation after using the easy setup on, for example on ubuntu: